Ionic 4 installation
Updated: Apr 8, 2021
This is ionic 4 installation tutorial.
Shortest version history of ionic
ionic 1 - Angular 1 or angular.js
ionic 2 - Angular 2
ionic 3 - Angular 2
ionic 4 - Angular, React, Vue and more
Now we have to see the steps for ionic 4 installation.
Before install the ionic framework you need to confirm the node.js and npm installed or not. Check with below command
If not installed then install latest node.js from here.
Install the Ionic CLI globally with npm. Run the below command in terminal window(mac) or command prompt (windows)
npm install -g ionic
Here -g means global installation. This may require admin permission so mac user use sudo command like "sudo npm install -g ionic" windows user open the command prompt with admin rights.
If you want to particular version of ionic then use command like below
npm install -g email@example.com
After install the ionic check with below command
It will show installed version of ionic
For mobile support we need to install the cordova, for cordova installation use below command
npm install -g cordova
After install the ionic and cordova you have to create ionic project using below command
ionic start myapp
For more info you have to refer ionic official page.