Installing NodeJS 12
NodeJS - Tutorials
Last updated
NodeJS - Tutorials
Last updated
First of all. Connect to your VPS Server using your Credentials
root@petrosky:/# apt-get update && apt-get upgrade -y
Downloading the NodeSource Script using 'curl' command.
root@petrosky:/# curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
Running the NodeSource Script
root@petrosky:/# bash nodesource_setup.sh
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!