NodeJS
Installation
Dependencies
- Change user to super user
su -
- Get dependencies
apt-get update
apt-get upgrade
apt-get install coreutils
nvm
Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Install latest version
(By now the latest stable version of Node is v18.16.0)
nvm install v18.16.0
Check node installation with
node -v
Output:
v18.16.0
Ensure npm, node's package manager, is also available.
which npm
Set up pnpm
sudo mkdir -p /usr/local/pnpm-global-store
sudo chmod -R 777 /usr/local/pnpm-global-store
pnpm config set store-dir /usr/local/pnpm-global-store