Node.js is a JavaScript runtime for server-side programming. It allows developers to create scalable backend functionality using JavaScript, a language many are already familiar with from browser-based web development.
To get this version, you can use the apt package manager. Refresh your local package index first by typing:
sudo apt update
Then install Node.js:
sudo apt install nodejs npm
Press Y when prompted to confirm installation. If you are prompted to restart any services, press ENTER to accept the defaults and continue. Check that the install was successful by querying node for its version number:
node -v
Install npm
sudo apt install npm
See the version number:
npm -v