This will install the latest version of Node.js from the default package manager repositories. If you want to install the latest version of Node.js from the NodeSource repository, you can follow these steps: Install the NodeSource repository: curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - This will download and run the NodeSource setup script, which will add the NodeSource repo..