Installing Node.js
- Update sources:
sudo apt update - Install curl:
sudo apt install curl - Get setup script (e.g., Node 18):
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - - Install:
sudo apt install -y nodejs - Check version:
node -v