Cloudflare DevelopersCD
Cloudflare Developers2y ago
13 replies
Spunkie

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
Was this page helpful?