使用如下命令查看原版npm源为:
- npm config get registry
- http://registry.npmjs.org
1.第一种方式
①用set命令换成阿里的镜像就可以了
- npm config set registry https://registry.npm.taobao.org
②再执行命令
- npm install
2.第二种方式
①执行
- npm install --registry=https://registry.npm.taobao.org
来源:CSDN
作者:张大仙是个妖怪
链接:https://blog.csdn.net/NDKHBWH/article/details/104072962