Dependency conflict installing vuelayers with NPM
hecent opened this issue · 2 comments
hecent commented
When I try to install vuelayers through npm I encounter the following error:
F:\####\first-map>npm install vuelayers@next
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: first-map@0.0.0
npm ERR! Found: vue@3.2.40
npm ERR! node_modules/vue
npm ERR! vue@"^3.2.40" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.6" from vuelayers@0.12.0-rc.28
npm ERR! node_modules/vuelayers
npm ERR! vuelayers@"0.12.0-rc.28" 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\####\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\####\AppData\Local\npm-cache\_logs\2022-09-28T19_16_34_144Z-debug-0.log
Apologies if this is from a mistake on my part.
ghettovoice commented
Hello @hecent ,
I guess from the log, that you have installed vue v3, but current version of vuelayers is build for vue v2.
You have 2 options here:
- stay with vue 3, drop vuelayers and use https://github.com/MelihAltintas/vue3-openlayers instead
- downgrade vue to version 2
github-actions commented
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.