Skip to content

Instantly share code, notes, and snippets.

@lenivene
Created November 6, 2019 22:01
Show Gist options
  • Save lenivene/bf284bd447818e01fc22749d2e28838a to your computer and use it in GitHub Desktop.
Save lenivene/bf284bd447818e01fc22749d2e28838a to your computer and use it in GitHub Desktop.
How to install Node.JS in Ubuntu or Mint Linux

1. Installing NVM

Starting the installation via terminal

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash

The command above will clone the NVM repository from Github to the ~/.nvm directory:

2. Installing Node.js and npm

Now that the nvm is installed you can install the latest available version of Node.js, by typing:

nvm install node

Once the installation is completed, verify it by printing the Node.js version:

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