window+R 输入cmd,输入以下命令
1.查看当前镜像地址:
npm get registry
2.切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
3.切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/
window+R 输入cmd,输入以下命令
1.查看当前镜像地址:
npm get registry
2.切换为淘宝镜像:
npm config set registry http://registry.npm.taobao.org/
3.切换为原本的npm镜像:
npm config set registry https://registry.npmjs.org/