Help! Can't install drizzle-orm

I am absolutely new to drizzle and just prepared a fresh new nextjs project to try it out. Right after my nextjs setup, I tried to install drizzle with mysql2.
npm i drizzle-orm mysql2
npm i drizzle-orm mysql2
Then got this massive error that says -
PS D:\Typescript\drizzle orm\drizzle_test> npm i drizzle-orm mysql2
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error peer react@"^18.2.0" from [email protected]
npm error node_modules/next
npm error next@"14.2.5" from the root project
npm error peer react@"^18.3.1" from [email protected]
npm error node_modules/react-dom
npm error peer react-dom@"^18.2.0" from [email protected]
npm error node_modules/next
npm error next@"14.2.5" from the root project
npm error react-dom@"^18" from the root project
npm error 2 more (styled-jsx, the root project)
npm error
npm error Could not resolve dependency:
npm error drizzle-orm@"*" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@"18.2.0" from [email protected]
npm error node_modules/react-native
npm error peer react-native@">0.73.0" from @op-engineering/[email protected]
npm error node_modules/@op-engineering/op-sqlite
npm error peerOptional @op-engineering/op-sqlite@">=2" from [email protected]
npm error node_modules/drizzle-orm
npm error drizzle-orm@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
PS D:\Typescript\drizzle orm\drizzle_test> npm i drizzle-orm mysql2
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error peer react@"^18.2.0" from [email protected]
npm error node_modules/next
npm error next@"14.2.5" from the root project
npm error peer react@"^18.3.1" from [email protected]
npm error node_modules/react-dom
npm error peer react-dom@"^18.2.0" from [email protected]
npm error node_modules/next
npm error next@"14.2.5" from the root project
npm error react-dom@"^18" from the root project
npm error 2 more (styled-jsx, the root project)
npm error
npm error Could not resolve dependency:
npm error drizzle-orm@"*" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/react
npm error peer react@"18.2.0" from [email protected]
npm error node_modules/react-native
npm error peer react-native@">0.73.0" from @op-engineering/[email protected]
npm error node_modules/@op-engineering/op-sqlite
npm error peerOptional @op-engineering/op-sqlite@">=2" from [email protected]
npm error node_modules/drizzle-orm
npm error drizzle-orm@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
3 Replies
Mario564
Mario5645mo ago
Hello. This is an issue the Drizzle team is looking to address soon and there's a Github issue open with some possible workarounds/temporary solutions https://github.com/drizzle-team/drizzle-orm/issues/2251
GitHub
[BUG]: [email protected] not working with [email protected] · Issue #2...
What version of drizzle-orm are you using? 0.30.10 What version of drizzle-kit are you using? No response Describe the Bug react@"18.2.0" is marked as the peer dependency Expected behavio...
Shayokh
ShayokhOP5mo ago
Ohh. I hope it gets fixed soon. Thanks a lot! ✨
Mario564
Mario5645mo ago
No problem. Keep it an eye out for when it gets solved 🙂
Want results from more Discord servers?
Add your server