一個npm倉庫管理工具:nrm

cnpm是淘寶定制提供的命令行工具,用來替代npm。由于我國特殊的國情,使用cnpm的速度遠遠快于npm,但是也存在一些不愉快和暗病。

今天發(fā)現(xiàn)一個工具,可以管理npm倉庫,快速在各個倉庫之間切換,這個工具就是nrm。

安裝nrm

npm install -g nrm

使用nrm

在命令行界面輸入nrm,即可出現(xiàn)用法。

Usage: nrm [options] [command]

? Options:

? ? -V, --version? ? ? ? ? ? ? ? output the version number

? ? -h, --help? ? ? ? ? ? ? ? ? output usage information

? Commands:

? ? ls? ? ? ? ? ? ? ? ? ? ? ? ? List all the registries

? ? current? ? ? ? ? ? ? ? ? ? ? Show current registry name

? ? use ? ? ? ? ? ? ? Change registry to registry

? ? add [home]? Add one custom registry

? ? del ? ? ? ? ? ? ? Delete one custom registry

? ? home [browser]? ? Open the homepage of registry with optional browser

? ? test [registry]? ? ? ? ? ? ? Show response time for specific or all registries

? ? help? ? ? ? ? ? ? ? ? ? ? ? Print this help

倉庫列表

nrm ls

? npm ---- https://registry.npmjs.org/

? cnpm --- http://r.cnpmjs.org/

* taobao - https://registry.npm.taobao.org/

? nj ----- https://registry.nodejitsu.com/

? rednpm - http://registry.mirror.cqupt.edu.cn/

? npmMirror? https://skimdb.npmjs.com/registry/

? edunpm - http://registry.enpmjs.org/

?切換至cnpm倉庫

nrm use cnpm

其他功能

當前倉庫名稱、添加倉庫、刪除倉庫、瀏覽器打開倉庫等功能,詳見nrm help。

測速


測速

參考文章

nvm、nrm、npm 安裝和使用詳解

nrm -- NPM registry 管理工具

最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容