Nodejs资料之nrm模块

徘徊边缘 提交于 2019-12-27 04:41:23
◆ 模块作用:

nrm ( npm registry manager ),npm下载地址切换工具。npm默认的下载地址在国外,国内下载速度慢,可以使用nrm模块切换到国内的下载地址。

◆ 使用步骤:
  1. 使用npm install nrm -g 下载
F:\workstation\nodejs> npm install nrm -g
npm WARN deprecated coffee-script@1.7.1: 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
+ nrm@1.2.1
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/
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!