更改npm镜像地址下载包步骤

1.  查看当前计算机的下载地址

  npm get registry

2.  修改为淘宝npm镜像

  npm config set registry http://registry.npm.taobao.org/

3.  修改为cnpmjs镜像

  npm config set registry http://r.cnpmjs.org/

4.  修改为原始地址

  npm config set registry http://registry.npmjs.org/

posted @ 2018-10-15 14:50  LemonTeaQueen  阅读(2933)  评论(0)    收藏  举报