1.删除文件夹node_modules
2.删除package-lock.json文件
3.cmd执行npm cache clean --force命令
4.执行npm i(重新安装依赖)
5.不行的话执行 npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install下载依赖包
以上是个人对于vue项目报错的一些看法,仅供参考,如果有更好的方法大家可以放在评论区我也学习一下
1.删除文件夹node_modules
2.删除package-lock.json文件
3.cmd执行npm cache clean --force命令
4.执行npm i(重新安装依赖)
5.不行的话执行 npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install下载依赖包
以上是个人对于vue项目报错的一些看法,仅供参考,如果有更好的方法大家可以放在评论区我也学习一下