Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install @pinia-orm/nuxt using NPM #1975

Open
philvernon opened this issue Jan 22, 2025 · 1 comment
Open

Cannot install @pinia-orm/nuxt using NPM #1975

philvernon opened this issue Jan 22, 2025 · 1 comment

Comments

@philvernon
Copy link

philvernon commented Jan 22, 2025

Environment

playground
The error is shown in the log for the 'Install Dependencies' task.

Reproduction

https://codesandbox.io/p/sandbox/pinia-orm-nuxt-install-error-t2yc44

Describe the bug

When following the steps to install @pinia-orm/nuxt, the install fails with unable to resolve dependency tree error. This happens when trying to run npm install @pinia-orm/nuxt --save after installing pinia for nuxt.

Steps

  1. Create new nuxt project with npx nuxi@latest init newproject
  2. Install pinia with npx nuxi@latest module add pinia (https://pinia.vuejs.org/ssr/nuxt.html#installation)
  3. Install @pinia-orm/nuxt with npm install @pinia-orm/nuxt --save (https://pinia-orm.codedredd.de/guide/nuxt/setup)

Additional context

The error shows that this package is looking for @pinia/nuxt: ^0.5.1 but following the steps above will install @pinia/nuxt: ^0.9.0.

These dependencies can be found in packages/nuxt/package.json so I wonder if it's a simple case of updating these

"@pinia/nuxt": "^0.5.1"

"@pinia/nuxt": "^0.5.1",

The issue is fixed by installing @pinia/nuxt: ^0.5.1 so if that's required I think that should be added to the documentation.

In the reproduction I've added "overrides": { "vue": "latest" } to package.json (a fix mentioned in similar issues 1 2 and in the pinia docs) but it doesn't resolve the issue.

Logs

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @pinia/[email protected]
npm ERR! node_modules/@pinia/nuxt
npm ERR!   @pinia/nuxt@"0.9.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @pinia/nuxt@"^0.5.1" from @pinia-orm/[email protected]
npm ERR! node_modules/@pinia-orm/nuxt
npm ERR!   @pinia-orm/nuxt@"^1.10.1" 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! /root/.cache/npm/_logs/2025-01-22T19_44_45_235Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /root/.cache/npm/_logs/2025-01-22T19_44_45_235Z-debug-0.log
@mrFANRA
Copy link

mrFANRA commented Jan 28, 2025

some trouble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants