Hello friends, I have an error when I use npm install vue-slect, it tells me that I do not have the correct version of vue, I updated it and it keeps coming up, I do not know what to do.
PS C:\xamppIVR\htdocs\proyectoInsertia> npm install vue-select
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/vue
npm ERR! dev vue@"^3.2.29" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"2.x" from [email protected]
npm ERR! node_modules/vue-select
npm ERR! vue-select@"*" 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\Andres Felipe Garcia\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\Andres Felipe Garcia\AppData\Local\npm-cache\_logs\2022-02-04T22_25_53_536Z-debug.log
What could I do in this case?
It happens that the version of the package you want to install expects to find Vue2 but your project is in Vue3
According to this discussion ( https://github.com/sagalbot/vue-select/issues/1251 ), the library with Vue3 support should be installed with the following command
either