Created
September 22, 2017 13:06
-
-
Save mansouryaacoubi/5f0744ba2bc04a295d13239ed51f125c to your computer and use it in GitHub Desktop.
Install Ionic on Raspberry Pi
This file contains hidden or 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/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