使用nrm切换源

2020-05-27  本文已影响0人  locky丶

有时我们需要在taobao源和官方npm源之前做切换,每次去设置比较麻烦。
使用nrm可以很方便的做切换的操作

  1. 安装nrm
npm install -g nrm
  1. 执行命令查看可选的源
nrm ls
// 查看到的结果列表
 * npm -------- https://registry.npmjs.org/
  yarn ------- https://registry.yarnpkg.com/
  cnpm ------- http://r.cnpmjs.org/
  taobao ----- https://registry.npm.taobao.org/
  nj --------- https://registry.nodejitsu.com/

  1. 切换到taobao源
nrm use taobao

完工!!!

上一篇 下一篇

猜你喜欢

热点阅读