nrm

作者: 栗子daisy | 来源:发表于2020-08-26 14:26 被阅读0次

nrm(npm registry manager )是npm的镜像源管理工具

npm set registry https://registry.npm.taobao.org/
npm config rm registry

  • 官方npm源安装各种包比较慢的时候,建议修改npm源地址
  • 需要在公司的私有npm源和外部npm源之间来回切换,这样set来rm去不是办法,于是有了nrm
    nrm是专门用来管理和快速切换私人配置的registry
命令
查看npm源地址 npm config list
全局安装nrm npm install -g nrm
查看当前nvm版本 nrm -V
显示所有命令。 nrm -h
查看可选的源 nrm ls
查看当前使用的是哪个源 - nrm current
- npm config get registry
切换源 nrm use <registry>
切换到taobao源 - nrm use taobao 或
- npm set registry https://registry.npm.taobao.org/
切回官方源 - nrm use npm 或
- npm config rm registry
增加定制私有源 - nrm add <registry> <url> [home]
其中reigstry为源名,url为源的路径。
测试源的访问速度, 不加registry时测试所有的。 nrm test [registry]
删除自定义源 nrm del <registry>
发布包到自定义源,如果没有使用自定义源,则直接发布到npm。 nrm publish [options] [<tarball>|<folder>]
浏览器中打开源首页 - nrm home <registry> [browser]
- nrm home taobao
设置自定义源的授权信息。 nrm set-auth <registry> <value> [always]
给自定义源设置路径 nrm set-email <registry> <value>
设置发布到自定义源的npm托管仓储 nrm set-hosted-repo <registry> <value>
> nrm test
 npm ---- 1511ms
  yarn --- 1035ms
  cnpm --- 42884ms
*  taobao - 503ms
  nj ----- Fetch Error
  npmMirror  2376ms
  edunpm - Fetch Error
dnpm --- Fetch Error

相关文章

  • webpack

    nrm 安装 npm i nrm -g 不行就 sudo npm i nrm -g 安装 nrm ls nrm ...

  • npm 使用

    nrm切换各种源 npm install -g nrm nrm ls 查看当前使用的源nrm use taoba...

  • nrm切换npm源

    老是记不住,还是写下来好了 安装nrm npm install -g nrm nrm --help nrm ls...

  • webpack

    全局安装 nrm: npm install nrm -g查看镜像源 nrm ls切换淘宝镜像源 nrm use t...

  • mac下安装nrm vue-cli

    安装nrm sudonpm install -g nrm查看所有的可用的源nrm ls添加源nrm add源的名称...

  • nrm使用详解

    一、什么是 nrm? nrm[https://github.com/Pana/nrm](NPM registry ...

  • npm修改镜像源

    1.安装nrm npm install nrm -g 2.查看nrm镜像资源 nrm list 3.测试镜像速度 ...

  • vue/cli

    安装 node npm install nrm -g nrm ls nrm use taobao 卸载旧版 npm...

  • (一)nodejs安装nrm源管理器

    install nrm 安装nrm nrm ls 查看现有可以用的源 选择源

  • 如何安装webpack及运行webpack

    1、安装nrm: npm install -g nrm 查看镜像 nrm ls 查看的结果:npm -------...

网友评论

      本文标题:nrm

      本文链接:https://www.haomeiwen.com/subject/hkenrktx.html