Manual Install Ionic Mac


#1

Hi everyone!

I think that could be interesting for all if We make a tutorial for install Ionic on mac, with all steps, right?

I do not know if these are all steps. I have this steps:

  1. Install Node.js ===> nodejs.org

  2. Install Xcode ===> in App Store

  3. Install ===> xcode-select --install

  4. Install Cordova, Ionic ===> $sudo npm install cordova ionic ios-sim -g

  5. Last Version of JAVA ===> Java SE Development Kit

  6. Install Android sdk ===> brew install android-sdk
    6.1. If you need install HomeBrew:

    ruby -e “$(curl -fsSL -k https://raw.githubusercontent.com/Homebrew/install/master/install)”

  7. You could install Android Studio here ===> Android Studio

  8. Install Git ===> Git

  9. Install Apache Ant ===> brew install ant

  10. Add Android sdk in your path ===> edit this file: “.bash_profile” - Add This info:

export PATH=${PATH}:/Applications/Android\ Studio.app/sdk/platform-tools:/Applications/Android\ Studio.app/sdk/tools
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=${JAVA_HOME}/bin:$PATH
export PATH=/usr/local/bin:$PATH
export JAVA_HOME="/usr/libexec/java_home -v '1.8*'"
export ANDROID_HOME=/usr/local/opt/android-sdk

10.Now you need restart your computer
11.Now, we can create a new project this this orders:

$ ionic start myTest blank
$ cd myTest
$ ionic platform add ios
$ ionic platform add android
  • If you have problems with “.plugman”, you need to run this command:

    $ sudo chmod -R 777 ~/.plugman

Please, someone tell me if I do something wrong or missing something?

Thank you in advance.

Regards,

despotars


Problems with Getting Started with Ionic
#2

Ok, Im not sure how to help, but here’ some ideas:

  • Did you installed XCode Command Line Tools?
  • You installed the SDk, but did you download the stuff? (android sdk command)

#3

Thank you for your answer. Yes, I have installed XCode Command Line Tools, and the second idea, I think that yes, when I installed android Studio, I have the Android SDK, right?


#4

Sort of. Open the Android SDK Manager and check if you have the base contents. Maybe something is missing. There’s a long time I did it so I can’t remember how it was :smiley:


#5

I’ve tried the android studio and appears to work well, are you referring to this?


#6

open console and run “android”. Send a screenshot of the app that opened.


#7

This is the screenshot:


#8

You need to install the android 19 api