Last active
December 4, 2019 14:28
-
-
Save ryanttb/9c66880b367930e402c2323c024cd202 to your computer and use it in GitHub Desktop.
Install node on Linux Subsystem for Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# this script requires root | |
# be sure to run the following before running this: | |
# $ sudo su | |
# since there's an issue piping the curl response to bash | |
# just download the install script | |
curl -sL https://deb.nodesource.com/setup_6.x > install_node.sh | |
# make it executable and run it | |
chmod a+x install_node.sh | |
./install_node.sh | |
# run apt-get for nodejs | |
apt-get install nodejs | |
# get the latest version (well, 6.x since we downloaded setup_6.x) | |
npm install npm@latest -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment