R
Railway•3y ago
eddie

Docker builds failing

something going on with npm not being able to be pulled
9 Replies
eddie
eddieOP•3y 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: [email protected]
#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 [email protected]
#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: [email protected]
#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 [email protected]
#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•3y ago
Change next latest so 12 or something Delete your package.json and then npm i
eddie
eddieOP•3y ago
ok will try thanks
nebula
nebula•3y ago
no package-lock
Finn
Finn•3y ago
Ohh yeah ffs @eddie dont delete package.json just the lock file Lmfao
eddie
eddieOP•3y ago
What does it mean to lock ? Do I commit the package lock file? Thanks!
Finn
Finn•3y ago
Yea commit them The lock specifies the exact versions of packages to install based of your package.json
eddie
eddieOP•3y ago
ok commited package.lock and it just instafails
eddie
eddieOP•3y 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
Want results from more Discord servers?
Add your server