开发的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
能够切换npm地址,当npm install * 经常报错的时候,是吗?
P
引用 think2011能够切换npm地址,当npm install 经常报错的时候,是吗?
对因为官方的 npm registry 最近经常出问题, 可以切换为其他如 cnpm, 或者 欧洲的
T
引用 think2011能够切换npm地址,当npm install 经常报错的时候,是吗?
@panawang nice!!
I
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
P
P
引用 imgqbevents.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child...
bug 已经修复, 在windows下也能用了, 多谢
C
已经用上,赞一个~
T
我回来了,真的好用,这个!
F
国内只安装的话, cnpm 足已.
W
楼上大佬。npm publish 还是要用 npm registry
参与回复
登录后即可参与回复。登录