Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #106

Open
yanruogu opened this issue Aug 31, 2024 · 0 comments
Open

compile error #106

yanruogu opened this issue Aug 31, 2024 · 0 comments

Comments

@yanruogu
Copy link

  1. 编译的时候异常,执行npm install 抛出异常如下:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/webpack
npm error   webpack@"^4.0.0" from @vue/[email protected]
npm error   node_modules/@vue/cli-plugin-eslint
npm error     dev @vue/cli-plugin-eslint@"^3.9.1" from the root project
npm error   peer webpack@"^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" from [email protected]
npm error   node_modules/html-webpack-plugin
npm error     dev html-webpack-plugin@"3.2.0" from the root project
npm error     html-webpack-plugin@"^3.2.0" from @vue/[email protected]
npm error     node_modules/@vue/cli-service
npm error       dev @vue/cli-service@"3.5.3" from the root project
npm error     2 more (script-ext-html-webpack-plugin, svg-sprite-loader)
npm error   3 more (monaco-editor-webpack-plugin, sass-loader, script-ext-html-webpack-plugin)
npm error
npm error Could not resolve dependency:
npm error vue-loader@"^15.9.3" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/webpack
npm error   peerOptional webpack@"^5.27.0" from [email protected]
npm error   node_modules/css-loader
npm error     peer css-loader@"*" from [email protected]
npm error     node_modules/vue-loader
npm error       vue-loader@"^15.9.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /root/.npm/_logs/2024-08-31T08_56_36_676Z-eresolve-report.txt

npm error A complete log of this run can be found in: /root/.npm/_logs/2024-08-31T08_56_36_676Z-debug-0.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant