在 npm 中添加本地项目依赖项的正确语法是什么package.json
file?
我本地有 git 项目C:\projects\MyApp
我想得到这个项目npm install
。我尝试以下
"dependencies": {
.....
"my-app": "file://../projects/MyApp/MyApp.git"
.....
}
但出现错误
Could not install ....
有什么建议吗?
终于开始工作了
"my-app": "../projects/MyApp"
这很简单,直到您知道为止。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)