Skip to content

Instantly share code, notes, and snippets.

@tankala
Last active December 18, 2022 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tankala/6cdbaaf636ec515f3a02fc9df4b9155c to your computer and use it in GitHub Desktop.
Save tankala/6cdbaaf636ec515f3a02fc9df4b9155c to your computer and use it in GitHub Desktop.
Unable to install vuex-persist due to dependency resolve issue

Due to dependency issues I got this error

npm ERR! Found: vue@2.7.14
npm ERR! node_modules/vue
npm ERR! vue@"^2.7.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^3.2.0" from vuex@4.1.0
npm ERR! node_modules/vuex
npm ERR! peer vuex@">=2.5" from vuex-persist@3.1.3
npm ERR! node_modules/vuex-persist
npm ERR! vuex-persist@"*" from the root project

I changed npm install command like this then it worked

npm install --save vuex-persist --legacy-peer-deps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment