相关疑难解决方法(0)

npm在package.json中依赖安装私有github存储库

我正在尝试通过npm安装github私有存储库,其中包含其他私有github存储库作为依赖项.

尝试了很多方法和帖子,但没有一个工作.这是我正在做的事情:

npm install git+https://github.com/myusername/mygitrepository.git
Run Code Online (Sandbox Code Playgroud)

在package.json中就像:

"dependencies": {
    "repository1name": "git+https://github.com/myusername/repository1.git",
    "repository2name": "git+https://github.com/myusername/repository2.git"
}
Run Code Online (Sandbox Code Playgroud)

这样做的正确方法是什么?

dependencies github node.js npm package.json

192
推荐指数
8
解决办法
16万
查看次数

标签 统计

dependencies ×1

github ×1

node.js ×1

npm ×1

package.json ×1