Skip to main content

PNPM

We are currently switching from NPM to PNPM as it is faster and more efficient. You can watch following video for a short summary or read the docs for more information.

Install

You can install PNPM with their standalone script:

curl -fsSL https://get.pnpm.io/install.sh | sh -

Or with brew:

brew install pnpm

See https://pnpm.io/installation for more.

Quickstart

npm commandpnpm equivalent
npm installpnpm install
npm i <pkg>pnpm add <pkg>
npm run <cmd>pnpm <cmd>

Node version management

You can use PNPM to manage your node versions, making other node version management tools like nvm superfluous.

pnpm env use --global 22

https://pnpm.io/cli/env

info

If you decide to use pnpm to manage your node versions, you might want to uninstall your previous node installation and nvm.