【发布时间】:2019-08-08 02:36:34
【问题描述】:
我的项目中有一个 npm 依赖项,它指向一个私有 git 存储库。不幸的是,git repo 链接在我的本地不起作用,但是当我们进行 jenkins 构建时它工作正常,因为该 git repo 链接只允许某些列入白名单的 ip(即 jenkins ip 地址)。
我已经研究过 apache proxypass 和 verdaccio,但我不确定这是否是正确的方法
dependencies": {
"api-module": "git+https://example/repo-name.git",
},
在本地,当我执行 npm install 但不想更新 package.json 时,我希望 https://example/repo-name.git 路由到 https://differentUrl/repo-name.git
【问题讨论】:
标签: npm dependencies