1. 介绍npm包有很多的镜像源,有的源有的时候访问失败,有的源可能没有最新的包等等,所以有时需要切换npm的源,nrm包就是解决快速切换问题的。nrm可以帮助您在不同的npm源地址之间轻松快速地切换。nrm内置了如下源:npmhttps://www.npmjs.com/cnpmhttps://cnpmjs.org/taobaohttps://npm.taobao.org/njhttps://registry.nodejitsu.com/rednpmhttp://registry.mirror.cqupt….skimdbhttps://skimdb.npmjs.com/regi…2. 安装打开终端运行如下命令:npm install -g nrm/usr/local/bin/nrm -> /usr/local/lib/node_modules/nrm/cli.js+ nrm@1.0.2added 324 packages from 564 contributors in 13.338s