1.查询配置的镜像源地址:
npm get registry
2.配置为淘宝镜像源
npm config set registry http://registry.npm.taobao.org/
3.回退为npm官方源
npm config set registry https://registry.npmjs.org/
2022-11-12 21:16:26
1.查询配置的镜像源地址:
npm get registry
2.配置为淘宝镜像源
npm config set registry http://registry.npm.taobao.org/
3.回退为npm官方源
npm config set registry https://registry.npmjs.org/