Skip to content

Instantly share code, notes, and snippets.

View kingstenbanh's full-sized avatar

Kingsten Banh kingstenbanh

View GitHub Profile
<ion-view title="Case Number" left-buttons=""leftButtons ng-controller="NewCtrl as ctrl" autoscroll="true">
<!--<ion-nav-title class="logo-header">-->
<!--<img src='http://s9.postimg.org/ey9j02j3v/casenumber_logo.png'>-->
<!--</ion-nav-title>-->
<ion-nav-buttons side="right" >
<button class="button current-location"
ng-if="!ctrl.isSupported"
ng-click="ctrl.getCurrentLocation()">
<i class="icon ion-navigate"></i>
</button>
npm ERR! Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json'
npm ERR! { [Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json']
npm ERR! errno: 3, npm ERR! code: 'EACCES',
npm ERR! path: '/Users/chietala/.npm/-/all/.cache.json' }
npm ERR! npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "search" "bower"
npm ERR! cwd /Users/chietala
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
sudo npm install npm -g
... Error: ANDROID_HOME is not set and "android" command not in your PATH.
You must fulfill at least one of these conditions. ...
@kingstenbanh
kingstenbanh / android
Created November 22, 2015 04:51
install android sdk for cordova
brew install android-sdk
brew install ant
touch .zshrc
export ANDROID_HOME=/usr/local/opt/android-sdk export JAVA_HOME="$(/usr/libexec/java_home)" export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
source ~/.zshrc
which android