【文件属性】:
文件名称:nrm:NPM注册表管理器,可以在不同的注册表之间快速切换:npm,cnpm,nj,淘宝
文件大小:67KB
文件格式:ZIP
更新时间:2021-02-03 15:22:48
npm nrm registries registry-manager npmJavaScript
nrm-NPM注册管理器
nrm可以帮助您在不同的npm注册表之间轻松快捷地切换,现在包括: npm , cnpm , taobao , nj(nodejitsu) 。
如何配置yarn使用私有注册表?
只需在您的项目目录中添加.yarnrc并在其中写入: registry “http://your.registry”
或者,您可以在HOME目录的.yarnrc中进行配置
安装
$ npm install -g nrm
例
$ 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/
skimdb -- https://skimdb.npmjs.com/registry
$ nrm use cnpm //sw
【文件预览】:
nrm-master
----.gitignore(112B)
----package.json(783B)
----cli.js(19KB)
----package-lock.json(92KB)
----LICENSE(1KB)
----README.md(4KB)
----registries.json(950B)
----.yarnrc(36B)
----hooks.js(1KB)
----yarn.lock(118KB)