原创:https://zhuanlan.zhihu.com/p/683192771
清空缓存
npm cache clean --force
查看当前的npm镜像设置
npm config get registry
切换新源
npm config set registry https://registry.npmmirror.com
查看新源是否设置成功
npm config get registry
可以正常安装需要的工具了
npm insatll
原创:https://zhuanlan.zhihu.com/p/683192771
清空缓存
npm cache clean --force
查看当前的npm镜像设置
npm config get registry
切换新源
npm config set registry https://registry.npmmirror.com
查看新源是否设置成功
npm config get registry
可以正常安装需要的工具了
npm insatll