Closed HendrikJan closed 8 months ago
I have the same problem, newest package versions conflict with each other -.-
any fix for this?
I tried to install newest packages again today. The problem is still there. The error is now:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @vitejs/plugin-vue@4.6.2
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR! @vitejs/plugin-vue@"^5.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @vitejs/plugin-vue@"^5.0.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vite@5.1.0
npm ERR! node_modules/vite
npm ERR! peer vite@"^5.0.0" from @vitejs/plugin-vue@5.0.3
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR! @vitejs/plugin-vue@"^5.0.3" 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 /home/haaiee/.npm/eresolve-report.txt for a full report.
This is a bug in npm (https://github.com/npm/cli/issues/3782). Using --force
would work for now.
Less scary than a blanket --force
I was able to get around this blocker by running two separate commands
npm install vite
npm install
This was inspired by reading above mentioned npm bug. Thank you.
The solutions above didn't work for me (probably because I don't know frontend as well as I'd like).
I've been doing npm install --legacy-peer-deps
vitejs/plugin-vue and vite should have matching versions, otherwise use npm install --legacy-peer-deps
Related plugins
[x] plugin-vue
[ ] plugin-vue-jsx
Describe the bug
npx ncu -u
and some packages are upgraded:npm install
and I get this error:Reproduction
https://stackblitz.com/edit/vitejs-vite-i9kve7?file=package.json
Steps to reproduce
Run
npx ncu -u
followed bynpm install
System Info
Used Package Manager
npm
Logs
devDependencies and dependencies before running
npx ncu -u
are these:Validations