npm切换源

安装nrm

npm install -g nrm

查看

nrm ls                                                                                                              

* npm ---- https://registry.npmjs.org/
  cnpm --- http://r.cnpmjs.org/
  taobao - http://registry.npm.taobao.org/
  eu ----- http://registry.npmjs.eu/
  au ----- http://registry.npmjs.org.au/
  sl ----- http://npm.strongloop.com/
  nj ----- https://registry.nodejitsu.com/

切换

nrm use taobao                                                                                                               
   Registry has been set to: http://registry.npm.taobao.org/

你可能感兴趣的:(npm切换源)