npm 更改为淘宝镜像的方法

1、命令行临时使用指定镜像(淘宝)

npm --registry https://registry.npm.taobao.org install express

2、命令行永久更改使用指定镜像(淘宝)

npm config set registry https://registry.npm.taobao.org

以后 npm install express 默认使用指定(淘宝)镜像

猜你喜欢

转载自blog.csdn.net/jiangchuan465/article/details/128274424