npm的镜像替换成淘宝

1.获得本来的镜像地址npm

npm get registry get

> https://registry.npmjs.org/淘宝

设成淘宝的yarn

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

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

 

 

2.换成原来的ps

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

相关文章
相关标签/搜索