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 command | pnpm equivalent |
|---|---|
npm install | pnpm 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
info
If you decide to use pnpm to manage your node versions, you might want to uninstall your previous node installation and nvm.