# 执行成功提示 Registry has been set to: http://r.cnpmjs.org/ #用nrm add 命令添加公司私有npm源,如http://registry.npm.360.org(随便写的),起个别名叫qihoo nrm add qihoo http://registry.npm.360.org # 测试下速度 nrm test npm # 输出 npm ---1547ms #删npm源配置 nrm del qihoo 到这里...
带* 的是当前使用的源,上面的输出表明当前源是官方源。 切换 nrmusetaobao Registry has beensetto:http://registry.npm.taobao.org/ 增加源 nrm add<registry><url>[home] 删除源 nrmdel<registry>[your registry] 测试速度 测试单个 nrmtestnpm npm --- 1328ms 测试所有 nrmtest...
* npm --- https://registry.npmjs.org/cnpm --- http://r.cnpmjs.org/taobao - http://registry.npm.taobao.org/ 2)nrm use。切换到指定源上。 nrm addnewhttps://new.com 此时,会提示 : Registry has beensetto: http://r.cnpmjs.org/ 再次执行nrm ls,会得到: npm --- https://registry.np...
nj --- https://registry.nodejitsu.com/ skimdb -- https://skimdb.npmjs.com/registry 前面带 * 号的表示正在使用的源 切换使用的源nrm use npm //switch registry to cnpm $ nrm use cnpm Registry has been set to: http://r.cnpmjs.org/ 添加一个源nrm add <registry> <url> 如果想添加一个...
//skimdb.npmjs.com/registry/ cd@cd:~$ nrm use taobao Registry has been set to: https://registry.npmmirror.com/ cd@cd:~$ nrm ls npm --- https://registry.npmjs.org/ yarn --- https://registry.yarnpkg.com/ tencent --- https://mirrors.cloud.tencent.com/npm/ cnpm --- https:/...
nj --- https://registry.nodejitsu.com/ 带* 的是当前使用的源,上面的输出表明当前源是官方源。 切换 切换到taobao ; nrm use taobao Registry has been set to: http://registry.npm.taobao.org/ 增加源 你可以增加定制的源,特别适用于添加企业内部的私有源。私有源可以使用cnpmjs架设。 nrm add <regis...
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...
edunpm - http://registry.enpmjs.org/ ➜ ~ 切换源 nrm use cnpm 出现下面代码,重新查询,可看到已切换到cnpm源 ➜ ~ nrm use cnpm verb config Skipping project config: /home/seebin/.npmrc. (matches userconfig) Registry has been set to: http://r.cnpmjs.org/ ...
Registry has been set to: https://registry.npmmirror.com/ 查看帮助 nrm -h 输出 Usage: nrm [options] [command] Options: -V, --version output the version number -h, --help output usage information Commands: ls List all the registries ...
nrm use cnpm Registry has been set to: http://r.cnpmjs.org/ 4.增加源 你可以增加定制的源,特别适用于添加企业内部的私有源 nrm add <registry> <url> [home] 5.删除源 nrm del <registry> 6.测试速度 通过nrm test来测试相应源的响应时间,来选择选择合适的npm源 - 测试某个源的响应时间 nrm test...