vuejs / vue-jest

Jest Vue transformer
MIT License
748 stars 156 forks source link

install errors #532

Open khteh opened 1 year ago

khteh commented 1 year ago
$ n i vue-jest -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: khteh@1.0.0
npm ERR! Found: vue@3.2.47
npm ERR! node_modules/vue
npm ERR!   vue@"^3.2.47" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.x" from vue-jest@3.0.7
npm ERR! node_modules/vue-jest
npm ERR!   dev vue-jest@"*" 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! 
npm ERR! For a full report see:
npm ERR! /home/khteh/.npm/_logs/2023-02-13T01_15_16_489Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/khteh/.npm/_logs/2023-02-13T01_15_16_489Z-debug-0.log
$ n i vue3-jest -D
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: khteh@1.0.0
npm ERR! Found: babel-jest@29.4.2
npm ERR! node_modules/babel-jest
npm ERR!   babel-jest@"^29.2.2" from @quasar/quasar-app-extension-testing-unit-jest@3.0.0-beta.5
npm ERR!   node_modules/@quasar/quasar-app-extension-testing-unit-jest
npm ERR!     dev @quasar/quasar-app-extension-testing-unit-jest@"^3.0.0-beta.5" from the root project
npm ERR!   peer babel-jest@"29.x" from @vue/vue3-jest@29.2.2
npm ERR!   node_modules/@vue/vue3-jest
npm ERR!     @vue/vue3-jest@"^29.0.0" from @quasar/quasar-app-extension-testing-unit-jest@3.0.0-beta.5
npm ERR!     node_modules/@quasar/quasar-app-extension-testing-unit-jest
npm ERR!       dev @quasar/quasar-app-extension-testing-unit-jest@"^3.0.0-beta.5" from the root project
npm ERR!   2 more (jest-config, ts-jest)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev vue3-jest@"*" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: babel-jest@27.5.1
npm ERR! node_modules/babel-jest
npm ERR!   peer babel-jest@"27.x" from vue3-jest@27.0.0-alpha.1
npm ERR!   node_modules/vue3-jest
npm ERR!     dev vue3-jest@"*" 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! 
npm ERR! For a full report see:
npm ERR! /home/khteh/.npm/_logs/2023-02-13T01_16_57_804Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/khteh/.npm/_logs/2023-02-13T01_16_57_804Z-debug-0.log