Skip to content

Instantly share code, notes, and snippets.

@xt0rted
Created October 3, 2018 03:50
Show Gist options
  • Save xt0rted/e208fafc0eeb3e38da5e598a30430e1c to your computer and use it in GitHub Desktop.
Save xt0rted/e208fafc0eeb3e38da5e598a30430e1c 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