Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Possible to use pnpm with GAE?

Hey everyone! Have a fairly standard monorepo setup using turborepo and pnpm. Happy to get into the details, but currently using `google-github-actions/deploy-appengine@v2` on the `app` itself.

Unfortunately, while everything builds just fun, I'm running into a code `EUNSUPPORTEDPROTOCOL` error, where it says `Unsupported URL Type "workspace": workspace:*.

Looked around `pnpm` docs + turborepo docs but to no avail. Any ideas here?

1 1 878
1 REPLY 1

Hi @lostadam,

Welcome to Google Cloud Community!

GAE doesn't directly support pnpm's workspace protocol for monorepo deployments.

Solutions:

  • Workaround: Install dependencies conventionally (pnpm install --no-prefer-workspaces).
  • Alternatives: Use Yarn/npm in GAE, explore Cloud Build customization, or consider alternative deployment methods (Cloud Run, etc.).
  • Stay informed: Monitor pnpm, Turborepo, and GAE updates for potential solutions.