# node npm yarn

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm install 16
npm install --global yarn

# nvm - Node Version Manager

# nvm for node & npm

# nvm (linux)

get actual Version here https://github.com/nvm-sh/nvm#installing-and-updating or use 0.39.3

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

# npmp

npm install -g pnpm

or

npm install -g @pnpm/exe

# n package (never used)

# node.js npm

curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

# yarn

°fa-info°(information text) you need to do this for every version you may use via nvm

It is recommended to install Yarn through the npm package manager, which comes bundled with Node.js when you install it on your system.

# install and upgrade Yarn
npm install --global yarn