article we may develop on app for different platforms (Windows Phone, Android, IOS) . Here we develop Android app using Ionic1 and Cordova. Ionic has different version such as ionic1, ionic2 and ionc3 the most recent version of ionic is ionic3, but here we start from ionic1.
Installation - Setup of Ionic
1- To install Ionic and Cordova we need to install NodeJs. Download latest NodeJs from their official website and install.
After installation if Node open command prompt and type npm –v and hit enter to see the version of npm (nmp mean node package manager this manager will install ionic and cordova for us.) installed. For the installation of ionic and cordova follow below steps.
Note: To check that ionic or cordova installed successfully or not run below command in cmd.
- ionic -v
- cordova -v
The above command shows the installed version. If both installed successfully you will see the installed version otherwise you got following error.
"Ionic is not recognized as an internal or external command"
How to downgrade nmp
How to uninstall cordova and ionic >> npm uninstall -g cordova ionic
How to install specific version of ionic and cordova>> To install specific version use @ symbol with version number, e.g.
npm install -g firstname.lastname@example.org
npm install -g email@example.com
Now that we have installed cordova and ionic in our local machine