Skip to content

Instantly share code, notes, and snippets.

@markhker
Forked from micahgodbolt/wsl_install_node.md
Created June 20, 2017 16:31
Show Gist options
  • Save markhker/63ed75ed59a2c1be95df6504cfcc23b8 to your computer and use it in GitHub Desktop.
Save markhker/63ed75ed59a2c1be95df6504cfcc23b8 to your computer and use it in GitHub Desktop.
WSL install Node

The apt-get version of node is incredibly old, and installing a new copy is a bit of a runaround.

So here's how you can use NVM to quickly get a fresh copy of Node on your new Bash on Windows install

$ touch ~/.bashrc
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
// restart bash
$ nvm install node

Once you've done that you'll get a nice:

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