前端不能启动
你好,今天尝试运行这个前端项目,npm install 的时候,发生如下错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/html-webpack-plugin
npm ERR! html-webpack-plugin@"^3.2.0" from @vue/[email protected]
npm ERR! node_modules/@vue/cli-service
npm ERR! dev @vue/cli-service@"^4.5.0" from the root project
npm ERR! peer @vue/cli-service@"^3.0.0 || ^4.0.0-0" from @vue/[email protected]
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR! dev @vue/cli-plugin-eslint@"^4.5.0" from the root project
npm ERR! 3 more (@vue/cli-plugin-babel, @vue/cli-plugin-router, @vue/cli-plugin-vuex)
npm ERR! peer html-webpack-plugin@">=2.26.0" from @vue/[email protected]
npm ERR! node_modules/@vue/preload-webpack-plugin
npm ERR! @vue/preload-webpack-plugin@"^1.1.0" from @vue/[email protected]
npm ERR! node_modules/@vue/cli-service
npm ERR! dev @vue/cli-service@"^4.5.0" from the root project
npm ERR! 4 more (@vue/cli-plugin-eslint, @vue/cli-plugin-babel, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer html-webpack-plugin@"^2.0.0" from [email protected]
npm ERR! node_modules/html-webpack-externals-plugin
npm ERR! dev html-webpack-externals-plugin@"^3.8.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/webpack
npm ERR! peer webpack@"1 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3" from [email protected]
npm ERR! node_modules/html-webpack-plugin
npm ERR! peer html-webpack-plugin@"^2.0.0" from [email protected]
npm ERR! node_modules/html-webpack-externals-plugin
npm ERR! dev html-webpack-externals-plugin@"^3.8.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\tibird\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\tibird\AppData\Local\npm-cache_logs\2023-01-10T07_02_15_252Z-debug-0.log
网上搜索之后发现是说依赖存在问题,但是我强制换成其他的依赖也不行。