为了账号安全,请及时绑定邮箱和手机立即绑定

npm通过package.json中的依赖项安装私有github存储库

npm通过package.json中的依赖项安装私有github存储库

慕尼黑的夜晚无繁华 2019-10-05 13:57:29
我正在尝试通过npm安装github私有存储库,该库包括其他私有github存储库作为依赖项。尝试了很多方法和帖子,但是都没有用。这是我在做什么:npm install git+https://github.com/myusername/mygitrepository.git在package.json中就像:"dependencies": {    "repository1name": "git+https://github.com/myusername/repository1.git",    "repository2name": "git+https://github.com/myusername/repository2.git"}正确的做法是什么?
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 2225 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信