How to install Ionic framework on Ubuntu?

后端 未结 4 1625
粉色の甜心
粉色の甜心 2020-12-28 09:38

I am using Ubuntu 14.04 version. I would like to use Ionic to build app for Android. I couldn\'t find exact solution to install Ionic.

4条回答
  •  一整个雨季
    2020-12-28 10:05

    As Others have stated: Install the following:

    • Java (oracle 8+)
    • Ant
    • git
    • node
    • android sdk (may need lib32)
    • cordova
    • ionic itself
    • bower, grunt, gulp

    So Java+git+abt first:

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
    sudo apt-get install oracle-java8-set-default
    sudo apt-get install ant git
    

    choose an Node version:

    #0.12
    curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
    

    or

    #5.x
    https://deb.nodesource.com/setup_5.x
    

    eitherway:

    sudo apt-get install -y nodejs
    

    If you're on an x64 machine:

    sudo apt-get install ia32-libs lib32ncurses5-dev lib32stdc++6
    

    if ia32-libs+lib32ncurses5 are not found use:

    sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
    

    Next: Android Sdk Download AndroidStudio/ or Standalone Sdk. I would recommend Studio, as it simplifies the installation-process a lot

    • download from Android.com
    • unzip to arbitrary location
    • run studio.sh (in /XY-location/Android-Sdk_linux/bin)
    • Add SDK to PATH: append to ~/.bash_profile or ~/.profile

      export ANDROID_HOME=/home/xyx/Android/sdk export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

    Finally install the node modules

    sudo npm install -g gulp bower grunt-cli cordova
    

    And ionic

    sudo npm install -g ionic
    

    or for ionic v2 (still in alpha state but cool++)

    sudo npm install -g ionic@alpha
    

提交回复
热议问题