首先先查看自已的镜像
// 查看当前镜像命令
npm config get registry
// 如果使用淘宝镜像依赖超时、异常,更换下面这个(推荐)
npm config set registry https://registry.npmmirror.com
// 设置淘宝镜像
npm config set registry https://registry.npm.taobao.org/
首先先查看自已的镜像
// 查看当前镜像命令
npm config get registry
// 如果使用淘宝镜像依赖超时、异常,更换下面这个(推荐)
npm config set registry https://registry.npmmirror.com
// 设置淘宝镜像
npm config set registry https://registry.npm.taobao.org/