Last active
September 17, 2017 13:33
-
-
Save rxon/84e4bbed8309004303364e8bb78726a1 to your computer and use it in GitHub Desktop.
nodebrewでnodeをupdateするsh
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
#!/usr/bin/env sh | |
# To update node and npm with nodebrew. | |
# Run this file with `sudo`. | |
# Be sure to installed npm | |
echo "Type latest node version : " | |
read NODE_VAR | |
echo Installing node $NODE_VAR | |
nodebrew install-binary $NODE_VAR | |
nodebrew use $NODE_VAR | |
echo Installing npm libraries to global. | |
npm i -g --unsafe-perm nodemon now | |
echo -e "\033[0;36mFinish!\033[0;39m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment