目前,package-lock.json
中的软件包注册表为http://registry.npm.taobao.org/
。
{
"name": "webpack",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/clean-webpack-plugin": {
"version": "0.1.0",
"resolved": "http://registry.npm.taobao.org/@types/clean-webpack-plugin/download/@types/clean-webpack-plugin-0.1.0.tgz",
"integrity": "sha1-xJillaQXSwoxPOQt5+UldcEi9aQ=",
"dev": true,
"requires": {
"@types/webpack": "*"
}
},
"@types/node": {
"version": "9.4.0",
"resolved": "http://registry.npm.taobao.org/@types/node/download/@types/node-9.4.0.tgz",
"integrity": "sha1-uFoLzx4cyE60kBt+lpZq7cbweNE=",
"dev": true
},
"@types/strip-bom": {
"version": "3.0.0",
"resolved": "http://registry.npm.taobao.org/@types/strip-bom/download/@types/strip-bom-3.0.0.tgz",
"integrity": "sha1-FKjsOVbC6B7bdSB5CuzyHCkK69I=",
"dev": true
},
// ...others
}
}
我想要将所有注册表都替换为 npm 官方注册表https://registry.npmjs.org/
或任何特定的注册表。同时保持使用相同版本的软件包。
如何操作?