nrm -- NPM registry 管理工具
发布于 10 年前 作者 Pana 74393 次浏览 最后一次编辑是 8 年前

开发的npm registry 管理工具 nrm, 能够查看和切换当前使用的registry, 最近NPM经常 down 掉, 这个还是很有用的哈哈

Install

$ npm install -g nrm

Example

$ 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/

cmd

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

Registries

11 回复

能够切换npm地址,当npm install * 经常报错的时候,是吗?

对因为官方的 npm registry 最近经常出问题, 可以切换为其他如 cnpm, 或者 欧洲的

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: spawn ENOENT
    at errnoException (child_process.js:988:11)
    at Process.ChildProcess._handle.onexit (child_process.js:779:34)

楼主你再review下代码。。

你用的哪个系统

还没在win下测试过, 明天调整下

bug 已经修复, 在windows下也能用了, 多谢

已经用上,赞一个~

我回来了,真的好用,这个!

国内只安装的话, cnpm 足已.

楼上大佬。npm publish 还是要用 npm registry

回到顶部