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

本文详细介绍如何将npm源从默认的npmjs.org切换到淘宝npm镜像。包括临时使用、全局配置切换方法,以及如何检测是否成功切换。适用于解决国内npm安装速度慢的问题。
3950

被折叠的 条评论
为什么被折叠?



