Skip to content

Document deployment to Cloudflare #19

@langpavel

Description

@langpavel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions