Skip to content

Instantly share code, notes, and snippets.

@tankala
Last active December 18, 2022 14:33
Show Gist options
  • 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: [email protected]
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 [email protected]
npm ERR! node_modules/vuex
npm ERR! peer vuex@">=2.5" from [email protected]
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