PetroSky Documentation
  • PetroSky - Docs
  • Getting Started
    • Basics
      • What is a VPS?
      • Operating Systems
      • Connecting to a VPS
    • Utilities
      • Backups
      • Snapshots
      • Reinstall
      • Password Reset
      • noVNC
    • Tutorials
      • Changing SSH Port
      • noVNC - Disabling Firewall
      • Installing Essentials
      • Installing LAMP
      • Installing OpenJDK 11
      • Installing NodeJS 12
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Tutorials

Installing NodeJS 12

NodeJS - Tutorials

PreviousInstalling OpenJDK 11

Last updated 3 years ago

Was this helpful?

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!