1、临时使用
npm install <npmName> --registry https://registry.npm.taobao.org
2、长久使用
// 修改配置
npm config set registry https://registry.npm.taobao.org
//查看修改后的配置结果
npm config get registry
3、恢复默认
npm config set registry https://registry.npmjs.org
1、临时使用
npm install <npmName> --registry https://registry.npm.taobao.org
2、长久使用
// 修改配置
npm config set registry https://registry.npm.taobao.org
//查看修改后的配置结果
npm config get registry
3、恢复默认
npm config set registry https://registry.npmjs.org