1、 将npm的下载源恢复为默认的官方源:
npm config set registry https://registry.npmjs.org
2、最新的配置淘宝镜像的淘宝官方提供的方法:
npm config set registry https://registry.npmmirror.com
3、查看是否修改成功:
npm config get registry
1、 将npm的下载源恢复为默认的官方源:
npm config set registry https://registry.npmjs.org
2、最新的配置淘宝镜像的淘宝官方提供的方法:
npm config set registry https://registry.npmmirror.com
3、查看是否修改成功:
npm config get registry