Skip to content

Instantly share code, notes, and snippets.

@bumplzz69
Forked from xt0rted/setup.md
Created October 3, 2018 03:51
Show Gist options
  • Save bumplzz69/9e1f9828c15224a3f977e25b419c40f4 to your computer and use it in GitHub Desktop.
Save bumplzz69/9e1f9828c15224a3f977e25b419c40f4 to your computer and use it in GitHub Desktop.
Setting up node in bash on WSL

Setting up node in bash on WSL

Setting up Node on WSL is easiest when done with NVM. To do this go into bash and run the following:

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

Once NVM is installed close and reopen bash, then run the following:

nvm install node

At this point you should be able to run node inside bash. This also works inside the VS Code terminal.

The most current release of NVM can be found at https://github.com/creationix/nvm/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment