npm 切换淘宝源

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/luohongtuCSDN/article/details/88016046

npm 切换到淘宝源

地址

默认的npm下载地址:http://www.npmjs.org/
淘宝npm镜像的地址:https://npm.taobao.org/

临时使用淘宝源

npm --registry https://registry.npm.taobao.org install node-red-contrib-composer@latest

全局配置切换到淘宝源

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

全局配置切换到官方源

npm config set registry http://www.npmjs.org

检测是否切换到了淘宝源

npm info underscore

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/luohongtuCSDN/article/details/88016046
今日推荐