Skip to content

Instantly share code, notes, and snippets.

@nnzo
Last active August 27, 2019 10:20
Show Gist options
  • Save nnzo/3985a5f3306bda61fba442f876564871 to your computer and use it in GitHub Desktop.
Save nnzo/3985a5f3306bda61fba442f876564871 to your computer and use it in GitHub Desktop.
How to install NodeJS 8.x on an Ubuntu server

Donate! Please, if this helped you, consider donating :)

ETH: 0x709453D46915C562d88CEC34fA948ed7519c190f

BTC: 1LemonR7fZvco7Hg36ZNjy2MKKjhRgUwji

DASH: XffXBUTCyvWnLRtwvp1i8qFfzGr12XAZmd

LTC: LhGHVFynWALCSHAg42JrmWaDXknK1PWYZN

Installation:

Prerequisites:

  • Fresh Install of a Ubuntu 16.04+ server ($50 free credit on Vultr using my ref link)
  • 3 Minutes

To download and run nvm-sh (Node Version Manager), run this command:

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

Now run

 source ~/.bashrc

To install NodeJS 8.x, run this command:

 nvm install 8

Node version Manager should now download and install NodeJS 8.x.

To check what version of node you have installed, run this:

 node -v

If the output of this command is 8.x, you have successfully installed NodeJS 8.x!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment