临时切换淘宝源下载包 npm的镜像替换成淘宝

npm的镜像替换成淘宝

获取当前的npm镜像地址

npm get registry 

换成淘宝的

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

换成原来的

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

获取当前的npm镜像地址

npm get registry 

换成淘宝的

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

换成原来的

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

猜你喜欢

转载自www.cnblogs.com/oujianjun/p/10464382.html
今日推荐