-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I have trouble with node and pnpm version in connected automatic Cloudflare Worker build:
Initializing build environment...
Success: Finished initializing build environment
Cloning repository...
Detected the following tools from environment: pnpm@10.11.1, nodejs@22.16.0
Installing project dependencies: pnpm install --frozen-lockfile
ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
Your pnpm version is incompatible with "/opt/buildhome/repo".
Expected version: >=10.11.1
Got: 9.10.0
This is happening because the package's manifest has an engines.pnpm field specified.
To fix this issue, install the required pnpm version globally.
To install the latest version of pnpm, run "pnpm i -g pnpm".
To check your pnpm version, run "pnpm -v".
Failed: error occurred while installing tools or dependencies
Issue was resolved by adding environment variables to the build.
In Cloudflare Workers dashboard go into Settings → Build → Build Variables and Secrets:
| Variable | Value |
|---|---|
| NODE_VERSION | 24 |
| PNPM_VERSION | 10 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels