Cannot build with pnpm

I was able to get things working by reverting to the old workaround.

From the pnpm docs:

Old workarounds are no longer needed
Prior to this change, it was possible to use pnpm with Netlify but it required workarounds. Developers found various methods to make pnpm work, some of which required disabling npm.

As of January 8th my builds stopped working, but reverting to this workaround and manually disabling npm results in a successful build. My netlify.toml now looks like:

[build]
  base = "docs/"
  command = "pnpm run build"
  publish = "build/"
  ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."

And things are building correctly.

1 Like