Skip to content

Instantly share code, notes, and snippets.

@rxon
Last active September 17, 2017 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxon/84e4bbed8309004303364e8bb78726a1 to your computer and use it in GitHub Desktop.
Save rxon/84e4bbed8309004303364e8bb78726a1 to your computer and use it in GitHub Desktop.
nodebrewでnodeをupdateするsh
#!/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