在配置Vue环境时遇到了npm报错
在这里插入图片描述
说一下最后的解决办法
1、首先降低npm版本
npm install npm@4.6.1 -g
2、使用淘宝镜像
npm config set registry https://registry.npm.taobao.org
3、验证一下是否成功
npm config get registry
4、清楚一下安装缓存
npm cache clean --force
5、安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
6、cnpm -v查看是否安装成功

Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐