jmcooper / vuex-state-management

6 stars 7 forks source link

Error when running `npm install` multiple times #1

Open Gil-Seagal opened 2 years ago

Gil-Seagal commented 2 years ago

Hello, when running install multiple times the following error appears. First run works as expected.

Command: npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @vue/compiler-sfc@3.0.0
npm ERR! Found: vue@3.0.2
npm ERR! node_modules/vue
npm ERR!   vue@"^3.0.2" from the root project
npm ERR!   peerOptional vue@"^2 || ^3.0.0-0" from @vue/babel-preset-app@4.5.6
npm ERR!   node_modules/@vue/babel-preset-app
npm ERR!     @vue/babel-preset-app@"^4.5.6" from @vue/cli-plugin-babel@4.5.6
npm ERR!     node_modules/@vue/cli-plugin-babel
npm ERR!       dev @vue/cli-plugin-babel@"~4.5.0" from the root project
npm ERR!   4 more (@vuelidate/core, @vuelidate/validators, vue-demi, vue-router)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"3.0.0" from @vue/compiler-sfc@3.0.0
npm ERR! node_modules/@vue/compiler-sfc
npm ERR!   dev @vue/compiler-sfc@"^3.0.0-0" from the root project
npm ERR!   peerOptional @vue/compiler-sfc@"^3.0.0-beta.14" from @vue/cli-service@4.5.6
npm ERR!   node_modules/@vue/cli-service
npm ERR!     dev @vue/cli-service@"~4.5.0" from the root project
npm ERR!     5 more (@vue/cli-plugin-babel, @vue/cli-plugin-eslint, ...)
npm ERR! 
npm ERR! Conflicting peer dependency: vue@3.0.0
npm ERR! node_modules/vue
npm ERR!   peer vue@"3.0.0" from @vue/compiler-sfc@3.0.0
npm ERR!   node_modules/@vue/compiler-sfc
npm ERR!     dev @vue/compiler-sfc@"^3.0.0-0" from the root project
npm ERR!     peerOptional @vue/compiler-sfc@"^3.0.0-beta.14" from @vue/cli-service@4.5.6
npm ERR!     node_modules/@vue/cli-service
npm ERR!       dev @vue/cli-service@"~4.5.0" from the root project
npm ERR!       5 more (@vue/cli-plugin-babel, @vue/cli-plugin-eslint, ...)
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 /Users/xxxxxxx/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/xxxxxxx/.npm/_logs/2022-07-22T04_12_21_709Z-debug-0.log

Thank you!

Gil-Seagal commented 2 years ago

Possible solution could be Fix the upstream dependency conflict installing NPM packages

npm install --legacy-peer-deps

Although it feels like this should be fixed properly.