Skip to content

Instantly share code, notes, and snippets.

@serverhiccups
Created November 26, 2016 01:00
Show Gist options
  • Save serverhiccups/507d647e46b27bb20274331202b5beb5 to your computer and use it in GitHub Desktop.
Save serverhiccups/507d647e46b27bb20274331202b5beb5 to your computer and use it in GitHub Desktop.
Install node on my button
if [ ! -f /installed.txt ]; then
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
apt-get install -y nodejs npm
npm install -g scratchapi
cd /root
npm init -y
touch /installed.txt
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment