1. Download node.js from https://nodejs.org/ and install it.
  2. From command line, run below command to install the cordova and ionic.
    [/crayon]
  3. Run below command to start a new app with tabs:
    [/crayon]
    It could also come with a sidemenu like
    [/crayon]
    Or blank:
    [/crayon]
  4. Add the ios/android support and build/emulate your app:
    [/crayon]
  5. If you want to test it from web browser, run:
    [/crayon]

 

Notes

  1. Step2: If your user account is not in sudoers list, find http://www.sealyu.com/2015/07/14/how-to-use-npm-global-without-sudo-on-osx-john-papa/ to install npm to other position.
  2. Step 4: If you still not setup your android environment, you will see below error:

Screen Shot 2015-07-15 at 2.09.01 PM

 

In this case, you need to set the Android environment variables in ~/.bash_profile or /etc/profile:

Save your changes. Restart the cmd to run the command again.

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注