lucia
lucia copied to clipboard
ERESOLVE unable to resolve dependency tree
C:\laragon\www\PERSONAL\cv-builder>npm install @lucia-auth/adapter-prisma
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: nuxt-app@undefined
npm ERR! Found: @prisma/[email protected]
npm ERR! node_modules/@prisma/client
npm ERR! dev @prisma/client@"^6.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @prisma/client@"^4.2.0 || ^5.0.0" from @lucia-auth/[email protected]
npm ERR! node_modules/@lucia-auth/adapter-prisma
npm ERR! @lucia-auth/adapter-prisma@"*" 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\olive\AppData\Local\npm-cache\_logs\2024-12-10T04_58_21_681Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\olive\AppData\Local\npm-cache\_logs\2024-12-10T04_58_21_681Z-debug-0.log
Package needs to be updated
yeah it not support v6 prisma i also want that too ):
now downgrade prisma to v5 to keep it work
I don't think the adapter is going to be updated, best solution is to follow the migration guide. However, in the interim you can add the following to your package.json to fix npm
"overrides": {
"@lucia-auth/adapter-prisma": {
"@prisma/client": "^6.3.1"
}
}