1、npm设置淘宝镜像
npm config set registry https://registry.npm.taobao.org
2、查看镜像设置
npm config get registry
3、还原成npm镜像
npm config set registry https://registry.npmjs.org/
4、清除npm缓存
npm cache clean --force
karila 2020-10-13 10:30 原文
1、npm设置淘宝镜像
npm config set registry https://registry.npm.taobao.org
2、查看镜像设置
npm config get registry
3、还原成npm镜像
npm config set registry https://registry.npmjs.org/
4、清除npm缓存
npm cache clean --force