使用 nrm 管理 npm 源
最编程
2024-03-14 10:19:08
...
# 查看 nrm 内置的几个 npm 源
➜ ~ nrm ls
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
* taobao - https://registry.npm.taobao.org/
nj ----- https://registry.nodejitsu.com/
npmMirror https://skimdb.npmjs.com/registry/
edunpm - http://registry.enpmjs.org/
# 切换源
➜ ~ nrm use cnpm
verb config Skipping project config: /Users/sunqiang/.npmrc. (matches userconfig)
Registry has been set to: http://r.cnpmjs.org/
上一篇: 节点和电子安装