我正试图通过npm安装github私有存储库,其中包括其他私有github存储库作为依赖项.
已经try 了很多方法和帖子,但都没有奏效.以下是我正在做的:
npm install git+https://github.com/myusername/mygitrepository.git
打包的.json就像:
"dependencies": {
"repository1name": "git+https://github.com/myusername/repository1.git",
"repository2name": "git+https://github.com/myusername/repository2.git"
}
正确的方法是什么?