变更记录

序号 录入时间 录入人 备注
1 2017-11-07 Alfred Jiang -

方案名称

Node.js - Mac 系统中使用 nrm 管理 npm 源地址

关键字

Node.js \ nrm \ npm

需求场景

  1. 需要 npm 多个源切换时

参考链接

  1. cnodejs - nrm -- NPM registry 管理工具(推荐)

详细内容

安装

$ npm install -g nrm

使用

列出全部源地址(带 * 表示为当前所用源)

$ nrm ls

* npm ---- https://registry.npmjs.org/
  cnpm --- http://r.cnpmjs.org/
  eu ----- http://registry.npmjs.eu/
  au ----- http://registry.npmjs.org.au/
  sl ----- http://npm.strongloop.com/
  nj ----- https://registry.nodejitsu.com/

切换源

$ nrm use cnpm //switch registry to cnpm

  Registry has been set to: http://r.cnpmjs.org/

全部命令

nrm help // show help
nrm list // show all registries
nrm use cnpm // switch to cnpm
nrm home // go to a registry home page

效果图

(无)

备注

(无)

results matching ""

    No results matching ""