How to Install Ionic Framework on Ubuntu, Debian & LinuxMint

Ionic Framework is useful for building mobile apps like Android and iOS. This article will help you to install Node.js, Cordova and Ionic framework on your system.

1. Install Node.js

First use the following commands to install npm and nodejs on your system. In below commands first command will installed some required packages on system. Second command will add ppa for node.js to your system. After that update your all attached ppa and last command will install nodejs and npm on your system.
$ sudo apt-get install python-software-properties python g++ make $ sudo add-apt-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs 

2. Install Cordova

Now use the following command to install Cordova on your system using npm command. It will install all other required node modules on your system.
$ sudo npm install -g cordova 

3. Install Ionic Framework

Ionic provides and command line utility for creating packages, build and start applications. Use npm command to install Ionic framework on your system.
$ sudo npm install -g ionic 
After completing installation of Ionic framework, use following command to check installed version.
$ ionic -v  1.7.12 

4. Create Your Project

Now, You need to create a new Cordova project on your computer using following command.
$ ionic start HelloWorld blank 
Now use one of the following command to enable iOS or Android platform. iOS platform will work on MacOS only.
$ ionic platform add ios $ ionic platform add android 
For more details visit http://ionicframework.com/docs/guide/installation.html

Thanks for Visit Here

Comments