Go Back
Short recap: Node, pnpm, and pnpm env
Posted:
The confusing part
I wanted one setup: pnpm for packages and as a node version manager. I started with a mix of pnpm from homebrew and volta for managing node versions.
What I learned
Homebrew’s pnpm cannot manage Node with pnpm env.
If you install pnpm with Homebrew, pnpm will error with something like pnpm was not installed using the standalone installation script when you run pnpm env use --global ….
pnpm only enables Node management when pnpm itself comes from the standalone installer on pnpm.io/installation (the install script from the site—not brew install pnpm).
Final setup (simple version)
- Install pnpm via the official standalone script (not Homebrew) if you care about
pnpm env. - Manage Node with pnpm after that, for example:
One-line takeaway
Want pnpm env? Install pnpm with the standalone script; Homebrew pnpm is for using pnpm as a package manager, not for pnpm-managed Node.