Nodejs Framework Installation Build app

Source: Internet
Author: User

Download Nodejs extract to opt directory
$ cd/usr/local/bin
$ sudo ln-s/opt/node-v5.1.0-linux-x64/bin/node
$ sudo ln-s/opt/node-v5.1.0-linux-x64/bin/npm

$ sudo npm install-g Cordova Ionic


Download Android SDK extract to opt directory
$ vim. BASHRC
Export Android_home= "/opt/android-sdk-linux"
Export path= "$PATH: $ANDROID _home/tools: $ANDROID _home/platform-tools"

$ android
Download the Android SDK tools,android SDK platrform-tools,android SDK build-tools,api22 using the agent (http://mirrors.neusoft.edu.cn 80)


Download Java
$ sudo apt-get install Oracle-java8-installer

$ vim. BASHRC
Export Java_home= "/usr/lib/jvm/java-8-oracle"



Create a project
1. Blank Application

$ Ionic Start myApp blank

2.Tabs applications

$ Ionic Start myApp tabs

3. Sliding Menu Application

$ ionic Start myApp Sidemenu

4. Running

$ CD MYAPP
$ Ionic Platform Add Android
$ Ionic Build Android
$ Ionic Run Android


$ Ionic Platform Add iOS
$ Ionic Build iOS
$ ionic Emulate iOS


$ ionic Serve


Errors that may be encountered

Unrecognized VM option ' maxpermsize=256m '
Error:could not create the Java Virtual machine.
ERROR:A Fatal exception has occurred. Program would exit.

$ cd.gradle
$ vim Gradle.properties
org.gradle.jvmargs=-xmx512m


Execution failed for task ': Validatedebugsigning '.
> Unable to recreate missing debug KeyStore.

$ vim sudo chmod-r 777. Android

Nodejs Framework Installation Build app

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.