pnpm is a Node.js package manager like npm, yarn.
If you using nvm or Volta to manage node versions now pnpm can do that too.
Before we start you need to uninstall all of your node, nvm and Volta.
Installation
Install pnpm with standalone script.
curl -fsSL https://get.pnpm.io/install.sh | sh -
Check version after installed.
pnpm -v
Now you can install Node.js with pnpm
Example
Install and use LTS version
pnpm env use --global lts
Install and use specific version
pnpm env use --global 16
Install and use latest version
pnpm env use --global latest
To remove node version use
pnpm env remove --global <version>
refs:
Top comments (0)