跳到主要内容
CNode

nrm -- NPM registry 管理工具

社区
PPana发布于 12 年前最后回复 7 年前
11760670
目录 · 4 个章节

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

W
wisetc#117 年前

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

F
fengmk2#1012 年前

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

T
think2011#912 年前

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

C
ceclinux#812 年前

已经用上,赞一个~

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

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

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

T
think2011#112 年前

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

参与回复

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