Skip to content

Instantly share code, notes, and snippets.

@OctupleSakura
Forked from micahgodbolt/wsl_install_node.md
Created November 18, 2019 07:30
Show Gist options
  • Save OctupleSakura/86af763d6c375f81f53a0dbc422d720e to your computer and use it in GitHub Desktop.
Save OctupleSakura/86af763d6c375f81f53a0dbc422d720e 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