Closed genffy closed 1 year ago
Try npm add pinia
, pinia should be a child dependency of @pinia/nuxt
.
When I do npm add pinia
I get:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: element-plus-nuxt-starter@0.1.0
npm ERR! Found: vue@3.3.4
npm ERR! node_modules/vue
npm ERR! peer vue@"^3.2.0" from @element-plus/icons-vue@2.1.0
npm ERR! node_modules/@element-plus/icons-vue
npm ERR! peer @element-plus/icons-vue@">=0.2.6" from @element-plus/nuxt@1.0.6
npm ERR! node_modules/@element-plus/nuxt
npm ERR! dev @element-plus/nuxt@"^1.0.5" from the root project
npm ERR! @element-plus/icons-vue@"^2.0.6" from element-plus@2.3.14
npm ERR! node_modules/element-plus
npm ERR! peer element-plus@">=2" from @element-plus/nuxt@1.0.6
npm ERR! node_modules/@element-plus/nuxt
npm ERR! dev @element-plus/nuxt@"^1.0.5" from the root project
npm ERR! 1 more (the root project)
npm ERR! 1 more (the root project)
npm ERR! peer vue@"^3.3.4" from @nuxt/vite-builder@3.7.3
npm ERR! node_modules/@nuxt/vite-builder
npm ERR! @nuxt/vite-builder@"3.7.3" from nuxt@3.7.3
npm ERR! node_modules/nuxt
npm ERR! nuxt@"^3.6.5" from @vueuse/nuxt@10.4.1
npm ERR! node_modules/@vueuse/nuxt
npm ERR! dev @vueuse/nuxt@"^10.2.0" from the root project
npm ERR! 1 more (the root project)
npm ERR! 15 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: vue@2.6.14
npm ERR! node_modules/vue
npm ERR! peer vue@">= 2.5 < 2.7" from @vue/composition-api@1.7.2
npm ERR! node_modules/@vue/composition-api
npm ERR! peerOptional @vue/composition-api@"^1.4.0" from pinia@2.1.6
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!
npm ERR! For a full report see:
npm ERR! C:\Users\robin\AppData\Local\npm-cache\_logs\2023-09-25T09_49_28_001Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\robin\AppData\Local\npm-cache\_logs\2023-09-25T09_49_28_001Z-debug-0.log
Just cloned the repo and it's not working. Someone needs to fix that.
@shroomlife add legacy-peer-deps=true
to .npmrc
and then add pinia
I just upgrade new deps & lock. And it still works well. Try use lastest pnpm install it.
when use npm as package manger tool, run postinstall script(nuxi prepare) got build error. reproduction step
error detail
dependecy detail
system info