首页 > 技术文章 > 临时切换淘宝源下载包

oujianjun 2019-03-03 11:13 原文

npm的镜像替换成淘宝

获取当前的npm镜像地址

npm get registry 

换成淘宝的

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

换成原来的

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

推荐阅读