一、npm i 版本兼容问题
pm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vueproject@1.0.0
npm ERR! Found: webpack@3.12.0
npm ERR! node_modules/webpack
npm ERR! dev webpack@"^3.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^5.0.0" from style-loader@3.3.1
npm ERR! node_modules/style-loader
npm ERR! style-loader@"^3.3.1" from the root project
解决方法:
npm i --legacy-peer-deps
二、报错问题二
Cannot read properties of null (reading ‘pickAlgorithm‘)
解决方法
1、输入npm cache clear --force 清楚缓存
2、缓存清理后,再次输入npm i 下载安装包
3、最后,运行npm run serve 启动项目