N
Nuxt5mo ago
Prem

Pinia not install

when i try to install pinia in nuxt project (npm install pinia) then i got error: npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: nuxt-app@undefined npm ERR! Found: [email protected] npm ERR! node_modules/vue npm ERR! peer vue@"^3.0.0-0 || ^2.6.0" from [email protected] npm ERR! node_modules/@floating-ui/vue/node_modules/vue-demi npm ERR! vue-demi@">=0.13.0" from @floating-ui/[email protected] npm ERR! node_modules/@floating-ui/vue npm ERR! @floating-ui/vue@"^1.1.1" from [email protected] npm ERR! node_modules/bootstrap-vue-next npm ERR! bootstrap-vue-next@"^0.24.2" from the root project npm ERR! peer vue@"^3.3.4" from @nuxt/[email protected] npm ERR! node_modules/@nuxt/vite-builder npm ERR! @nuxt/vite-builder@"3.12.4" from [email protected] npm ERR! node_modules/nuxt npm ERR! nuxt@"^3.12.4" from the root project npm ERR! 13 more (pinia, vue-demi, @unhead/vue, @vitejs/plugin-vue, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! pinia@"" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/vue npm ERR! peer vue@">= 2.5 < 2.7" from @vue/[email protected] npm ERR! node_modules/@vue/composition-api npm ERR! peerOptional @vue/composition-api@"^1.4.0" from [email protected] npm ERR! node_modules/pinia npm ERR! pinia@"" 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
2 Replies
dmarr
dmarr5mo ago
follow their install docs you need the overrides setting in your package.json
Remi
Remi5mo ago
For anyone looking for quick solution, just add this inside package.json below dependencies: "overrides": { "vue": "latest" }
Want results from more Discord servers?
Add your server