我正在尝试通过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)
这样做的正确方法是什么?