Deployment tries to use asdf but I don't want it to

Hi, I'm trying to deploy a project (yarn based) which has a .tool-versions in its root and it seems cloudflare pages deployment (V2) is trying to use asdf to resolve the yarn binary. In another very similar project, also having a .tool-versions, it was correctly using the system's yarn. I don't what it makes use asdf in this specific project. I've set YARN_VERSION to a specific version but that doesn't fix it. The build output log (it fails after that)
19:23:36.197 Using v2 root directory strategy
19:23:36.239 Success: Finished cloning repository files
19:23:37.387 Detected the following tools from environment: yarn@1.22.19, nodejs@18.17.1
19:23:37.799 No preset version installed for command corepack
19:23:37.800 Please install a version by running one of the following:
19:23:37.800
19:23:37.800 asdf install nodejs 16.14.0
19:23:37.800
19:23:37.800 or add one of the following versions in your config file at /opt/buildhome/repo/.tool-versions
19:23:37.810 nodejs 14.21.3
19:23:37.810 nodejs 16.20.2
19:23:37.810 nodejs 18.17.1
19:23:37.810 nodejs 20.5.1
19:23:36.197 Using v2 root directory strategy
19:23:36.239 Success: Finished cloning repository files
19:23:37.387 Detected the following tools from environment: yarn@1.22.19, nodejs@18.17.1
19:23:37.799 No preset version installed for command corepack
19:23:37.800 Please install a version by running one of the following:
19:23:37.800
19:23:37.800 asdf install nodejs 16.14.0
19:23:37.800
19:23:37.800 or add one of the following versions in your config file at /opt/buildhome/repo/.tool-versions
19:23:37.810 nodejs 14.21.3
19:23:37.810 nodejs 16.20.2
19:23:37.810 nodejs 18.17.1
19:23:37.810 nodejs 20.5.1
deployment_id: e72b9d59-8478-4e74-a421-94fd3f9e0dac
1 Reply
Felipe Hummel
Felipe Hummel5mo ago
it seems putting a NODE_VERSION in the ENV did the trick