Node.js-淘宝镜像

  1. 得到原本的镜像地址
    npm get registry;
    
  2. 设成淘宝的
    npm config set registry http://registry.npm.taobao.org/
    
  3. 设置成原来的
    npm config set registry https://registry.npmjs.org/
    
原文链接: https://marshucheng1.github.io/2017/01/10/WEB-node/