Skip to content

Instantly share code, notes, and snippets.

@onixus74
Forked from micahgodbolt/wsl_install_node.md
Created April 23, 2019 02:49
Show Gist options
  • Save onixus74/03ed74f23ffbcfbfbbe6c1a983b6b3f5 to your computer and use it in GitHub Desktop.
Save onixus74/03ed74f23ffbcfbfbbe6c1a983b6b3f5 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