1 介绍
nrm 是一个 npm 源管理器,允许你快速地在 npm源间切换。
2 添加淘宝下载源
更改node的下载源,淘宝。
npm set registry https://registry.npm.taobao.org/
查看是否安装成功!
npm config ls
3 nrm安装
3.1 nrm全局安装
npm install -g nrm
3.2 nrm验证安装
nrm ls
path.js:39 throw new ERR_INVALID_ARG_TYPE(‘path‘, ‘string‘, path);
解决方案:https://blog.csdn.net/qq_41520636/article/details/114055295
3.3 查看当前源
nrm current
3.4 切换源
nrm use <registry>
其他的命令不用知道了。