无脑下一步
C:\Users\DELL>node -v
v16.17.0
C:\Users\DELL>
NRM (npm registry manager)是npm的镜像源管理工具,有时候国外资源太慢,使用这个就可以快速地在
npm源间切换。
可以所以选择安装目录
npm install -g nrm
D:\developertool\node\nrm>nrm ls
npm ---------- https://registry.npmjs.org/
yarn --------- https://registry.yarnpkg.com/
tencent ------ https://mirrors.cloud.tencent.com/npm/
cnpm --------- https://r.cnpmjs.org/
taobao ------- https://registry.npmmirror.com/
npmMirror ---- https://skimdb.npmjs.com/registry/
D:\developertool\node\nrm>
D:\developertool\node\nrm>nrm use taobao
Registry has been set to: https://registry.npmmirror.com/
D:\developertool\node\nrm>