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: npm@9.6.7, nodejs@18.17.1
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/config-array@0.15.1
20:26:25.051 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
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: npm@9.6.7, nodejs@18.17.1
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/config-array@0.15.1
20:26:25.051 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
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.
15 Replies
derpygamer2142
am i supposed to bump this or something? it's still an issue continues to be an issue
Erisa
Erisa3w ago
Whats the error you get when you set NODE_VERSION to 20? also given that one says the build env has v18.17.1 and it wants 18.18.0 you may be able to set NODE_VERSION to 18.18 or 18.18.0 as well
derpygamer2142
With NODE_VERSION 20 it appears to be the same error:
15:10:01.900 Found wrangler.toml file. Reading build configuration...
15:10:01.905 pages_build_output_dir: .svelte-kit/cloudflare
15:10:01.906 Build environment variables: (none found)
15:10:02.028 Successfully read wrangler.toml file.
15:10:02.174 Detected the following tools from environment: npm@9.6.7, nodejs@18.17.1
15:10:02.174 Installing project dependencies: npm clean-install --progress=false
15:10:03.371 npm ERR! code EBADENGINE
15:10:03.372 npm ERR! engine Unsupported engine
15:10:03.372 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:10:03.373 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:10:03.373 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
15:10:03.373 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
15:10:03.374
15:10:03.374 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-17T22_10_02_860Z-debug-0.log
15:10:03.383 Error: Exit with error code: 1
15:10:03.383 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
15:10:03.383 at Object.onceWrapper (node:events:652:26)
15:10:03.383 at ChildProcess.emit (node:events:537:28)
15:10:03.384 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
15:10:03.394 Failed: build command exited with code: 1
15:10:07.215 Failed: error occurred while running build command
15:10:01.900 Found wrangler.toml file. Reading build configuration...
15:10:01.905 pages_build_output_dir: .svelte-kit/cloudflare
15:10:01.906 Build environment variables: (none found)
15:10:02.028 Successfully read wrangler.toml file.
15:10:02.174 Detected the following tools from environment: npm@9.6.7, nodejs@18.17.1
15:10:02.174 Installing project dependencies: npm clean-install --progress=false
15:10:03.371 npm ERR! code EBADENGINE
15:10:03.372 npm ERR! engine Unsupported engine
15:10:03.372 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:10:03.373 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:10:03.373 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
15:10:03.373 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
15:10:03.374
15:10:03.374 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-17T22_10_02_860Z-debug-0.log
15:10:03.383 Error: Exit with error code: 1
15:10:03.383 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
15:10:03.383 at Object.onceWrapper (node:events:652:26)
15:10:03.383 at ChildProcess.emit (node:events:537:28)
15:10:03.384 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
15:10:03.394 Failed: build command exited with code: 1
15:10:07.215 Failed: error occurred while running build command
(discord has a message length limit, hold on) 18.18 also seems to be the same error:
15:12:15.587 Found wrangler.toml file. Reading build configuration...
15:12:15.593 pages_build_output_dir: .svelte-kit/cloudflare
15:12:15.593 Build environment variables: (none found)
15:12:15.677 Successfully read wrangler.toml file.
15:12:15.831 Detected the following tools from environment: npm@9.6.7, nodejs@18.17.1
15:12:15.831 Installing project dependencies: npm clean-install --progress=false
15:12:17.077 npm ERR! code EBADENGINE
15:12:17.079 npm ERR! engine Unsupported engine
15:12:17.079 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:12:17.079 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:12:17.079 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
15:12:17.080 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
15:12:17.081
15:12:17.081 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-17T22_12_16_536Z-debug-0.log
15:12:17.090 Error: Exit with error code: 1
15:12:17.090 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
15:12:17.090 at Object.onceWrapper (node:events:652:26)
15:12:17.090 at ChildProcess.emit (node:events:537:28)
15:12:17.090 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
15:12:17.101 Failed: build command exited with code: 1
15:12:17.911 Failed: error occurred while running build command
15:12:15.587 Found wrangler.toml file. Reading build configuration...
15:12:15.593 pages_build_output_dir: .svelte-kit/cloudflare
15:12:15.593 Build environment variables: (none found)
15:12:15.677 Successfully read wrangler.toml file.
15:12:15.831 Detected the following tools from environment: npm@9.6.7, nodejs@18.17.1
15:12:15.831 Installing project dependencies: npm clean-install --progress=false
15:12:17.077 npm ERR! code EBADENGINE
15:12:17.079 npm ERR! engine Unsupported engine
15:12:17.079 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:12:17.079 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:12:17.079 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
15:12:17.080 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
15:12:17.081
15:12:17.081 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-17T22_12_16_536Z-debug-0.log
15:12:17.090 Error: Exit with error code: 1
15:12:17.090 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
15:12:17.090 at Object.onceWrapper (node:events:652:26)
15:12:17.090 at ChildProcess.emit (node:events:537:28)
15:12:17.090 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
15:12:17.101 Failed: build command exited with code: 1
15:12:17.911 Failed: error occurred while running build command
(one more) 18.18.0 is also the same:
15:14:09.537 Found wrangler.toml file. Reading build configuration...
15:14:09.537 pages_build_output_dir: .svelte-kit/cloudflare
15:14:09.537 Build environment variables: (none found)
15:14:09.659 Successfully read wrangler.toml file.
15:14:09.810 Detected the following tools from environment: npm@9.6.7, nodejs@18.17.1
15:14:09.811 Installing project dependencies: npm clean-install --progress=false
15:14:11.050 npm ERR! code EBADENGINE
15:14:11.052 npm ERR! engine Unsupported engine
15:14:11.052 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:14:11.052 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:14:11.053 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
15:14:11.053 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
15:14:11.054
15:14:11.054 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-17T22_14_10_510Z-debug-0.log
15:14:11.064 Error: Exit with error code: 1
15:14:11.064 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
15:14:11.065 at Object.onceWrapper (node:events:652:26)
15:14:11.065 at ChildProcess.emit (node:events:537:28)
15:14:11.065 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
15:14:11.076 Failed: build command exited with code: 1
15:14:11.895 Failed: error occurred while running build command
15:14:09.537 Found wrangler.toml file. Reading build configuration...
15:14:09.537 pages_build_output_dir: .svelte-kit/cloudflare
15:14:09.537 Build environment variables: (none found)
15:14:09.659 Successfully read wrangler.toml file.
15:14:09.810 Detected the following tools from environment: npm@9.6.7, nodejs@18.17.1
15:14:09.811 Installing project dependencies: npm clean-install --progress=false
15:14:11.050 npm ERR! code EBADENGINE
15:14:11.052 npm ERR! engine Unsupported engine
15:14:11.052 npm ERR! engine Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:14:11.052 npm ERR! notsup Not compatible with your version of node/npm: @eslint/config-array@0.15.1
15:14:11.053 npm ERR! notsup Required: {"node":"^18.18.0 || ^20.9.0 || >=21.1.0"}
15:14:11.053 npm ERR! notsup Actual: {"npm":"9.6.7","node":"v18.17.1"}
15:14:11.054
15:14:11.054 npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2024-06-17T22_14_10_510Z-debug-0.log
15:14:11.064 Error: Exit with error code: 1
15:14:11.064 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
15:14:11.065 at Object.onceWrapper (node:events:652:26)
15:14:11.065 at ChildProcess.emit (node:events:537:28)
15:14:11.065 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
15:14:11.076 Failed: build command exited with code: 1
15:14:11.895 Failed: error occurred while running build command
It doesn't appear to be changing the notsup Actual: {"npm":"9.6.7","node":"v18.17.1"} part between them, I'm not sure if that is relevant though
Erisa
Erisa3w ago
It should be so thats probably the underlying issue somehow
derpygamer2142
hm, so is this the correct place to put this?
No description
Erisa
Erisa3w ago
Where is that? it should look like this
No description
derpygamer2142
hm, it won't let me go into that tab for some reason?
derpygamer2142
these just redirect back to /settings/production
No description
derpygamer2142
the screenshot was from the deployment setup
Chaika
Chaika3w ago
this should be fixed now, might have to clear cache to get the fixed dashboard version
derpygamer2142
epic
derpygamer2142
hm, still not updating after changing from that tab
No description
derpygamer2142
message to reopen the thread