码迷,mamicode.com
首页 > 其他好文 > 详细

npm源管理

时间:2018-08-14 17:04:08      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:optional   col   bsp   custom   options   sudo   mac   orm   str   

1>下载nrm

npm i -g nrm(windows)
sudo npm i -g nrm (linux和mac)

 

2>使用nrm管理npm源

nrm使用:

Usage: cli [options] [command] 

Options: 

-V, --version output the version number 
-h, --help output usage information 

Commands: 

ls                                  List all the registries (显示npm源列表,有*好代表当前使用的源)
current                             Show current registry name (当前使用的npm源名称)
use  <registry>                     Change registry to registry (切换npm源)
add <registry> <url> [home]         Add one custom registry (添加npm源)
del <registry>                      Delete one custom registry )(删除npm源)
home <registry> [browser]           Open the homepage of registry with optional browser(在浏览器中打开输入源(名称)的域名)
test [registry]                     Show response time for specific or all registries 
help                                Print this help

 

npm源管理

标签:optional   col   bsp   custom   options   sudo   mac   orm   str   

原文地址:https://www.cnblogs.com/guojikun/p/9475386.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!