$ npm i drizzle-ormnpm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR!npm ERR! While resolving: outline-webapp@0.1.0npm ERR! Found: react@18.3.1npm ERR! node_modules/reactnpm ERR! peer react@"^18.2.0" from next@14.2.4npm ERR! node_modules/nextnpm ERR! next@"14.2.4" from the root projectnpm ERR! peer react@"^18.3.1" from react-dom@18.3.1 npm ERR! node_modules/react-domnpm ERR! peer react-dom@"^18.2.0" from next@14.2.4 npm ERR! node_modules/nextnpm ERR! next@"14.2.4" from the root projectnpm ERR! react-dom@"^18" from the root projectnpm ERR! 2 more (styled-jsx, the root project)npm ERR!npm ERR! Could not resolve dependency:npm ERR! drizzle-orm@"*" from the root projectnpm ERR!npm ERR! Conflicting peer dependency: react@18.2.0npm ERR! node_modules/reactnpm ERR! peer react@"18.2.0" from react-native@0.74.2npm ERR! node_modules/react-nativenpm ERR! peer react-native@">0.73.0" from @op-engineering/op-sqlite@6.0.6npm ERR! node_modules/@op-engineering/op-sqlitenpm ERR! peerOptional @op-engineering/op-sqlite@">=2" from drizzle-orm@0.31.2npm ERR! node_modules/drizzle-ormnpm ERR! drizzle-orm@"*" from the root projectnpm ERR!npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --force or --legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.
$ npm i drizzle-ormnpm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR!npm ERR! While resolving: outline-webapp@0.1.0npm ERR! Found: react@18.3.1npm ERR! node_modules/reactnpm ERR! peer react@"^18.2.0" from next@14.2.4npm ERR! node_modules/nextnpm ERR! next@"14.2.4" from the root projectnpm ERR! peer react@"^18.3.1" from react-dom@18.3.1 npm ERR! node_modules/react-domnpm ERR! peer react-dom@"^18.2.0" from next@14.2.4 npm ERR! node_modules/nextnpm ERR! next@"14.2.4" from the root projectnpm ERR! react-dom@"^18" from the root projectnpm ERR! 2 more (styled-jsx, the root project)npm ERR!npm ERR! Could not resolve dependency:npm ERR! drizzle-orm@"*" from the root projectnpm ERR!npm ERR! Conflicting peer dependency: react@18.2.0npm ERR! node_modules/reactnpm ERR! peer react@"18.2.0" from react-native@0.74.2npm ERR! node_modules/react-nativenpm ERR! peer react-native@">0.73.0" from @op-engineering/op-sqlite@6.0.6npm ERR! node_modules/@op-engineering/op-sqlitenpm ERR! peerOptional @op-engineering/op-sqlite@">=2" from drizzle-orm@0.31.2npm ERR! node_modules/drizzle-ormnpm ERR! drizzle-orm@"*" from the root projectnpm ERR!npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --force or --legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.
USING :
next.js 14.2.4
next.js 14.2.4
Solution: So after searching here and there I did this :
"drizzle-orm": "^0.28.6",
"drizzle-orm": "^0.28.6",
added this manually to the package.json. and then run