Skip to content

Instantly share code, notes, and snippets.

@joakin
Created February 6, 2017 19:37
Show Gist options
  • Save joakin/dd19c431e019dc9c2764f3bf810b5ad6 to your computer and use it in GitHub Desktop.
Save joakin/dd19c431e019dc9c2764f3bf810b5ad6 to your computer and use it in GitHub Desktop.
Node 6 on wmflabs

Labs has an old version of node installed (0.10), to get v6 (current LTS) with a newer npm...

  1. Use nodesource's instructions to get their deb repo setup
  • Example for node 6: curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  1. Check the names of the versions of the nodejs package with apt-cache policy nodejs
  2. Run apt-get install with the correct version to install (apt-get install package=version)
  • Example: sudo apt-get install nodejs=6.9.5-1nodesource1~trusty1
  1. If you're going to need native modules, apt-get install -y build-essential
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment