Nodejs資料之nrm模塊

◆ 模塊作用:

nrm ( npm registry manager ),npm下載地址切換工具。npm默認的下載地址在國外,國內下載速度慢,可以使用nrm模塊切換到國內的下載地址。

◆ 使用步驟:
  1. 使用npm install nrm -g 下載
F:\workstation\nodejs> npm install nrm -g
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
C:\Users\ASUS\AppData\Roaming\npm\nrm -> C:\Users\ASUS\AppData\Roaming\npm\node_modules\nrm\cli.js
+ [email protected]
added 489 packages from 861 contributors in 42.519s
  1. 查詢可用下載地址列表 nrm ls
F:\workstation\nodejs> nrm ls

* npm -------- https://registry.npmjs.org/
  yarn ------- https://registry.yarnpkg.com/
  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/
  1. 切換npm下載地址 nrm use 下載地址名稱
F:\workstation\nodejs> nrm use taobao

   Registry has been set to: https://registry.npm.taobao.org/
發佈了293 篇原創文章 · 獲贊 6 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章