# node.js package manager setup
## node.js setup
See [[nvm setup]], do not install node.js "directly".
## Package manager
By default, prefer `pnpm` as the latest default package manager for node.
### pnpm setup
### yarn setup
Prefer [yarn](https://yarnpkg.com/getting-started/install) over npm/npx, it is easier to use and has cleaner output:
```shell
npm install --location=global corepack
```
Old way:
```shell
npm install --location=global yarn
```
### npm setup
If you still want or need npm, you can set it up as follows:
```shell
nvm install-latest-npm
```