R
Railway•2y ago
eddie

Docker builds failing

something going on with npm not being able to be pulled
9 Replies
eddie
eddie•2y ago
#12 2.620 npm ERR! code ERESOLVE
#12 2.622 npm ERR! ERESOLVE unable to resolve dependency tree
#12 2.622 npm ERR!
#12 2.622 npm ERR! While resolving: undefined@undefined
#12 2.622 npm ERR! Found: react@17.0.2
#12 2.622 npm ERR! node_modules/react
#12 2.622 npm ERR! react@"17.0.2" from the root project
#12 2.622 npm ERR!
#12 2.622 npm ERR! Could not resolve dependency:
#12 2.623 npm ERR! peer react@"^18.0.0-0" from next@13.0.0
#12 2.623 npm ERR! node_modules/next
#12 2.623 npm ERR! next@"latest" from the root project
#12 2.623 npm ERR!
#12 2.623 npm ERR! Fix the upstream dependency conflict, or retry
#12 2.623 npm ERR! this command with --force, or --legacy-peer-deps
#12 2.623 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
#12 2.623 npm ERR!
#12 2.623 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
#12 2.620 npm ERR! code ERESOLVE
#12 2.622 npm ERR! ERESOLVE unable to resolve dependency tree
#12 2.622 npm ERR!
#12 2.622 npm ERR! While resolving: undefined@undefined
#12 2.622 npm ERR! Found: react@17.0.2
#12 2.622 npm ERR! node_modules/react
#12 2.622 npm ERR! react@"17.0.2" from the root project
#12 2.622 npm ERR!
#12 2.622 npm ERR! Could not resolve dependency:
#12 2.623 npm ERR! peer react@"^18.0.0-0" from next@13.0.0
#12 2.623 npm ERR! node_modules/next
#12 2.623 npm ERR! next@"latest" from the root project
#12 2.623 npm ERR!
#12 2.623 npm ERR! Fix the upstream dependency conflict, or retry
#12 2.623 npm ERR! this command with --force, or --legacy-peer-deps
#12 2.623 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
#12 2.623 npm ERR!
#12 2.623 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
Finn
Finn•2y ago
Change next latest so 12 or something Delete your package.json and then npm i
eddie
eddie•2y ago
ok will try thanks
nebula
nebula•2y ago
no package-lock
Finn
Finn•2y ago
Ohh yeah ffs @eddie dont delete package.json just the lock file Lmfao
eddie
eddie•2y ago
What does it mean to lock ? Do I commit the package lock file? Thanks!
Finn
Finn•2y ago
Yea commit them The lock specifies the exact versions of packages to install based of your package.json
eddie
eddie•2y ago
ok commited package.lock and it just instafails
eddie
eddie•2y ago
😦 ok i see i have to specify the nextjs package version, i'll try 12 , will report back, thanks OK IT pepepray are chads, thank u so much gonna close this mfer now