nodejs默认源在国外,访问速度慢。可以手动修改源,但要每次都修改。
安装 nrm,指定源路径,不需要每次修改
npm install nrm -gnrm 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/
   npmMirror -- https://skimdb.npmjs.com/registry/
   edunpm ----- http://registry.enpmjs.org/
nrm use taobao