You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
Try to install vuex-persistedstate with a vue-cli created package.json, nothing special, with:
npm install vuex-persistedstate
What happened:
npm gave the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vuex
npm ERR! vuex@"^4.0.0-0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vuex@"^3.0 || ^4.0" from [email protected]
npm ERR! node_modules/vuex-persistedstate
npm ERR! vuex-persistedstate@"4.0.0-beta.1" 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/casperl/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/casperl/.npm/_logs/2020-11-26T15_07_53_610Z-debug.log
Problem description:
npm can not resolve the peer dependency vuex@"^3.0 || ^4.0" of vuex-persistedstate eventhough I have a vuex ^4.0 version installed.
Is there a way to install it without using --force or --legacy-peer-deps?
The text was updated successfully, but these errors were encountered:
Same problem, bypassed it temporarily with: https://github.com/robinvdvleuten/vuex-persistedstate/pull/374/files by updating the version in peerDependencies. I don't think that style of dependency specification supports anything other than versions with numbers? That's just a guess, I don't know npm that well. I think it has to be parseable which semver, but I don't think the style vuex is using is. https://github.com/npm/node-semver
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
vuex-persistedstate
version: 4.0.0-beta.1node
version: v15.2.1npm
(oryarn
) version: 7.0.8Relevant code or config
package.json
What you did:
Try to install vuex-persistedstate with a vue-cli created package.json, nothing special, with:
What happened:
npm
gave the following error:Problem description:
npm can not resolve the peer dependency
vuex@"^3.0 || ^4.0"
of vuex-persistedstate eventhough I have a vuex ^4.0 version installed.Is there a way to install it without using --force or --legacy-peer-deps?
The text was updated successfully, but these errors were encountered: