Is nodejs 12 still supposed to work on

Is nodejs 12 still supposed to work on the v2 pages build system? I got a 4 year old repo I'm trying to move over to pages and get building. It works on the v1 build system but selecting v2 it does some weird complaining about node 12 is already installed and then errors out.
Using v2 root directory strategy
Success: Finished cloning repository files
Detected the following tools from environment: nodejs@12.22.12, yarn@3.6.3
Installing nodejs 12.22.12
nodejs 12.22.12 is already installed
No preset version installed for command corepack
Please install a version by running one of the following:

asdf install nodejs 12.22.12

or add one of the following versions in your config file at /opt/buildhome/.tool-versions
nodejs 14.21.3
nodejs 16.20.2
nodejs 18.17.1
nodejs 20.5.1
Error: Exit with error code: 126
at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
at Object.onceWrapper (node:events:652:26)
at ChildProcess.emit (node:events:537:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Failed: build command exited with code: 1
Failed: error occurred while running build command
Using v2 root directory strategy
Success: Finished cloning repository files
Detected the following tools from environment: nodejs@12.22.12, yarn@3.6.3
Installing nodejs 12.22.12
nodejs 12.22.12 is already installed
No preset version installed for command corepack
Please install a version by running one of the following:

asdf install nodejs 12.22.12

or add one of the following versions in your config file at /opt/buildhome/.tool-versions
nodejs 14.21.3
nodejs 16.20.2
nodejs 18.17.1
nodejs 20.5.1
Error: Exit with error code: 126
at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
at Object.onceWrapper (node:events:652:26)
at ChildProcess.emit (node:events:537:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Failed: build command exited with code: 1
Failed: error occurred while running build command
11 Replies
Erisa
Erisaβ€’10mo ago
I don't think so. And node 12 is so old that I don't imagine this is going to be made working on v2 anytime soon, if ever. I would recommend staying on build image v1 for now, it is legacy but your node version is even more legacy πŸ˜…
Spunkie
SpunkieOPβ€’10mo ago
:CatRee: lol well I guess they should update these docs to not say "Any version" of nodejs is supported https://developers.cloudflare.com/pages/configuration/language-support-and-tools/#supported-languages-and-tools
Cloudflare Docs
Language support and tools Β· Cloudflare Pages docs
Cloudflare Pages’ build environment has broad support for a variety of languages, such as Ruby, Node.js, Python, PHP, and Go.
Erisa
Erisaβ€’10mo ago
That's fair I'll have a look on Monday πŸ‘
gianpaj
gianpajβ€’10mo ago
HI @Erisa | Support Engineer , I'm having a similar issue. I had set up nodejs 18.19.0 in my .tools-versions file, and now I can't deploy my simple Astro website. I tried node 18, and either...
gianpaj
gianpajβ€’10mo ago
No description
Erisa
Erisaβ€’10mo ago
Hey @gianpaj, have you tried switching to Build System v2?
gianpaj
gianpajβ€’10mo ago
It's v2
Erisa
Erisaβ€’10mo ago
Strange, let me take a look when I can Sorry this slipped off my radar yesterday and today !reminder 11h
Flare
Flareβ€’10mo ago
:zep_check: I will remind you in 11 hours at Mar 22, 2024 at 9:48 GMT Reminder for @Erisa | Support Engineer: https://discord.com/channels/595317990191398933/1215800448443744296/1220504449403977768 Set <t:1711061336:R>
Spunkie
SpunkieOPβ€’10mo ago
Any update on this @Erisa | Support Engineer?
Want results from more Discord servers?
Add your server