npm 更换资源库&使用淘宝镜像

1.临时使用

npm --registry install  https://registry.npm.taobao.org

2.更换 npm 库

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

验证

npm config get registry

3.恢复

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

发布了295 篇原创文章 · 获赞 783 · 访问量 32万+

猜你喜欢

转载自blog.csdn.net/zhanglong_4444/article/details/103799375