Skip to content

Instantly share code, notes, and snippets.

@ll931217
Forked from micahgodbolt/wsl_install_node.md
Created October 23, 2018 08:12
Show Gist options
  • Save ll931217/d90803a2bf23b95881b2f4605d45d0d8 to your computer and use it in GitHub Desktop.
Save ll931217/d90803a2bf23b95881b2f4605d45d0d8 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.6/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