如何修改npm仓库地址

解决方案

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

将npm默认设置为淘宝镜像地址

发布包

当你想发布自己的包时,需要将地址修改回来

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

猜你喜欢

转载自www.cnblogs.com/feixiablog/p/9192747.html