Skip to content

Instantly share code, notes, and snippets.

@begueradj
Last active January 28, 2019 08:09
Show Gist options
  • Save begueradj/89d806693003ed4a5003c36c8387d9dd to your computer and use it in GitHub Desktop.
Save begueradj/89d806693003ed4a5003c36c8387d9dd to your computer and use it in GitHub Desktop.
Installing Node.js with NVM on Ubuntu 18.04 LTS

Install Nodes.js with NVM:

  1. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
  2. source ~/.bashrc
  3. nvm install v11.8.0

Install Yarn

  1. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  2. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  3. sudo apt-get update
  4. sudo apt-get install upgrade
  5. sudo apt install --no-install-recommends yarn # because Node.js is already installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment