npm镜像切换

1.查看当前镜像地址

npm get registry 

> https://registry.npmjs.org/

设成淘宝的

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

2.换成原来的

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

 

3.删除代理

npm config delete proxy
npm config delete https-proxy

 

over

posted on 2020-06-15 18:16  rainbowLover  阅读(497)  评论(0编辑  收藏  举报