查看当前镜像地址:
npm get registry
切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/
bettyling 2017-11-23 16:47 原文
查看当前镜像地址:
npm get registry
切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/