一.通过命令配置淘宝镜像
切换为淘宝镜像命令
npm config set registry https://registry.npm.taobao.org
切换原始镜像
npm config set registry https://registry.npmjs.org
查看当前使用的镜像地址命令
npm config get registry
#https://registry.npm.taobao.org
一.通过命令配置淘宝镜像
切换为淘宝镜像命令
npm config set registry https://registry.npm.taobao.org
切换原始镜像
npm config set registry https://registry.npmjs.org
查看当前使用的镜像地址命令
npm config get registry
#https://registry.npm.taobao.org