CNode

nrm -- NPM registry 管理工具

PPana发布于12 年前最后回复7 年前11 回复76021 浏览0 收藏

开发的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)

T
think2011#1·12 年前

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

P
Pana#2·12 年前
引用 think2011能够切换npm地址,当npm install 经常报错的时候,是吗?

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

I
imgqb#4·12 年前
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下代码。。

C
ceclinux#8·12 年前

已经用上,赞一个~

T
think2011#9·12 年前

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

F
fengmk2#10·12 年前

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

W
wisetc#11·7 年前

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

参与回复
登录后即可参与回复。登录