我已经运行npm shrinkwrap
,其中一些依赖项解析为http://127.0.0.1:5080
而不是NPM注册表。这里发生了什么?因为npm install
无法使用这些设置。
这里有一段摘录:
"jsprim": {
"version": "1.3.1",
"from": "jsprim@>=1.2.2 <2.0.0",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.3.1.tgz",
"dependencies": {
"extsprintf": {
"version": "1.0.2",
"from": "extsprintf@1.0.2",
"resolved": "http://127.0.0.1:5080/tarballs/extsprintf/1.0.2.tgz"
},
"json-schema": {
"version": "0.2.3",
"from": "json-schema@0.2.3",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz"
},
"verror": {
"version": "1.3.6",
"from": "verror@1.3.6",
"resolved": "http://127.0.0.1:5080/tarballs/verror/1.3.6.tgz"
}
}
},
为什么这些设置为http://127.0.0.1:5080?我该如何解决这个问题?
如果我用以下内容替换它们,则安装有效:
http://127.0.0.1:5080/tarballs/(.+)/(.+).tgz
https://registry.npmjs.org/$1/-/$1-$2.tgz