

You can now go ahead and install nvm using the following commands: curl -o- | bash You can do this by running the following commands: apt-get update -y Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. Log in and update the systemįirst, you will need to, log in to your Ubuntu 20.04 server via SSH as the root user: ssh -p Port_number You will need to replace ‘IP_Address‘ and ‘Port_number‘ with your server’s respective IP address and SSH port number. Access to the root user account (or access to an admin account with root privileges)įor this example we will be using Ubuntu 20.04 as the default OS, Node.js can be also installed and run on many different distributions.Installing Node.js and switching versions.
