derpygamer2142
derpygamer2142
CDCloudflare Developers
Created by derpygamer2142 on 6/13/2024 in #pages-help
code EBADENGINE, can't use a valid version of node
The pages.dev is https://black-book.pages.dev/ Here's the error I got when trying to deploy a sveltekit project from github:
Detected the following tools from environment: [email protected], [email protected]
20:26:23.810 Installing project dependencies: npm clean-install --progress=false
20:26:25.049 npm ERR! code EBADENGINE
20:26:25.050 npm ERR! engine Unsupported engine
20:26:25.051 npm ERR! engine Not compatible with your version of node/npm: @eslint/[email protected]
20:26:25.051 npm ERR! notsup Not compatible with your version of node/npm: @eslint/[email protected]
20:26:25.051 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
20:26:25.051 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
20:26:25.053
20:26:25.053 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-13T03_26_24_523Z-debug-0.log
20:26:25.062 Error: Exit with error code: 1
20:26:25.062 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
20:26:25.062 at Object.onceWrapper (node:events:652:26)
20:26:25.062 at ChildProcess.emit (node:events:537:28)
20:26:25.062 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
20:26:25.074 Failed: build command exited with code: 1
Detected the following tools from environment: [email protected], [email protected]
20:26:23.810 Installing project dependencies: npm clean-install --progress=false
20:26:25.049 npm ERR! code EBADENGINE
20:26:25.050 npm ERR! engine Unsupported engine
20:26:25.051 npm ERR! engine Not compatible with your version of node/npm: @eslint/[email protected]
20:26:25.051 npm ERR! notsup Not compatible with your version of node/npm: @eslint/[email protected]
20:26:25.051 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
20:26:25.051 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
20:26:25.053
20:26:25.053 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-13T03_26_24_523Z-debug-0.log
20:26:25.062 Error: Exit with error code: 1
20:26:25.062 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
20:26:25.062 at Object.onceWrapper (node:events:652:26)
20:26:25.062 at ChildProcess.emit (node:events:537:28)
20:26:25.062 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
20:26:25.074 Failed: build command exited with code: 1
I saw another mention of this error in https://discord.com/channels/595317990191398933/1073024469213380688 , but I've seen in a few places that 18 is not supported and it didn't work when I set an env variable of NODE_VERSION to the ones it wants.
21 replies