Skip to content

Instantly share code, notes, and snippets.

@mansouryaacoubi
Created September 22, 2017 13:06
Show Gist options
  • Save mansouryaacoubi/5f0744ba2bc04a295d13239ed51f125c to your computer and use it in GitHub Desktop.
Save mansouryaacoubi/5f0744ba2bc04a295d13239ed51f125c to your computer and use it in GitHub Desktop.
Install Ionic on Raspberry Pi
#!/bin/bash
# @usage bash <(curl -s https://gist.githubusercontent.com/mansouryaacoubi/5f0744ba2bc04a295d13239ed51f125c/raw/a31cf51544f36440faffdaf91d473d0339d35752/install-ionic.sh)
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit 1
else
clear
echo
echo "Script is running with higher privileges as: $SUDO_USER -> $(whoami)"
echo
fi
wget https://nodejs.org/dist/v6.11.3/node-v6.11.3-linux-armv6l.tar.gz
tar -xvf node-v4.3.2-linux-armv6l.tar.gz
cd node-v4.3.2-linux-armv6l
cp -R * /usr/local/
cd ..
rm -r node-v4.3.2-linux-armv6l
rm node-v4.3.2-linux-armv6l.tar.gz
apt-get install -y npm
npm install -g cordova ionic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment