2 - Update and install
It is time to update our machine to get the latest security patches. We will also install node and NPM
👉 IMPORTANT UPDATE
The video above presents an outdated method for installing Node.js and npm on Ubuntu 22.04. For a more recent and recommended approach, please refer to the official NodeSource Node.js Binary Distributions repository on GitHub.
You can find the detailed installation instructions in the repository here: NodeSource Node.js Binary Distributions - Installation Instructions
This repository provides a comprehensive guide to installing Node.js and npm using the NodeSource distributions, which is the most current and secure method. It's essential to follow these steps meticulously to avoid any potential complications with your cloud machine running Ubuntu 22.04.