If you’ve installed the needed prerequisites from the previous section, then in order to install Ionic (both on Mac and Windows) you just have to run the following command:
npm install ionic cordova -g
Ionic uses [Cordova](https://cordova.apache.org/) in the background for packaging up the native app, thus the need for it. We’re using the **-g** flag here, in order to install the packages **ionic** and **cordova**.
To verify that you’ve installed Ionic correctly on your Windows/Mac machine, run the following command in your Command prompt/Terminal:
ionic -v
You should get an output similar to:
3.4.0
To verify that you’ve installed Cordova correctly on your Windows/Mac machine, run the following command in your Command prompt/Terminal:
cordova -v
You should get an output similar to:
7.0.1