Ionic is a relatively fire of the hybird framework of the people very much so the information will be relatively complete.
Cordova is a tool that connects ionic and native Android underlying APIs. (This is a good understanding, but it may not be accurate.)
With their benefits.
Cross-platform can be used on iOS Android platform
(Other specific content please Baidu/google/)
Let's get down to it.
Don't ask me why I am not configured under Windows, I have a headache! (Configuring various global variables under Windows, or Linux)
(I'm using Deepin Linux is closely related to Ubuntu so I use the same commands as Ununtu)
If your JDK environment is well-built, the job is to do the following
1. First you need to install NODEJS and configure global variables
2. Install Cordova and configure global variables
3. Install ionic Configure global variables and configure the Android environment variable
I. Linux installation nodejs more simple download Linux version compression package from official website
Official website: https://nodejs.org/en/
There is a bin file in the folder after decompression
Use the ln-s command to soft-connect the file under the bin file to the/usr/bin/
Cp-r node-v4. 2.2-linux-x64/opt/-s/opt/nodejs/bin/node/usr/bin/-s/opt/nodejs/bin/npm/usr/bin/npm/ /Ibid.
Under test: (open terminal in any directory to enter the following content)
The version number appears to be successful.
Two. Install Cordova and Ionic using NPM
Use the command:
You can also Cordova and ionic together.
Ionic method Ibid.
After installation is complete
Input Cordova found in any directory is not available
You need to use the Ln-s command to soft connect to/usr/bin/to use the same method as above. (Note path must write absolute path)
The installed Cordova directory is here
After the soft connection is executed.
Under test:
The version number is on the line.
Also use the command:
sudo install- g ionic
Using ln-s Soft Connect
method as above.
Under test:
The environment is perfect.
Now we're going to create a project, try it.
The first installation installs many dependent packages. It's going to be slow.
There are also such errors:
Because the Android environment is not well-equipped.
There are two ways to solve this problem:
1. Configure the environment variables, you can Baidu
2. Connect the/sdk/tools/android to the/usr/bin/via the soft-connect Ln-s method
It's done.
(Above is the default you have installed the Android development environment I use Android Studio. If you use Eclipse, configure Ant again)
Linux under Configuration Nodejs+ionic+cordova