Installing NodeJS 12

NodeJS - Tutorials

How to install NodeJS 12 on Debian/Ubuntu?

First of all. Connect to your VPS Server using your Credentials

Step 1:

root@petrosky:/# apt-get update && apt-get upgrade -y

Step 2:

Downloading the NodeSource Script using 'curl' command.

root@petrosky:/# curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh

Step 3:

Running the NodeSource Script

root@petrosky:/# bash nodesource_setup.sh

Step 4:

Installing NodeJS Using the following command:

root@petrosky:/# apt install nodejs

And finally NodeJS 12 is installed! Now we can check the version by using: node -v command!

Last updated