Open Terminal and update system packages: sudo apt update && sudo apt upgrade -y
Run ‘sudo apt install nodejs’.
Execute ‘sudo apt install npm’ to get the Node Package Manager.
Check versions with ‘node -v’ and ‘npm -v’.
Run ‘sudo npm install -g npm@latest’ to update npm.
Test installation by creating a simple NodeJS app.
Run ‘command -v nvm’ to ensure nvm is installed.