Setting up the Ionic framework and Cordova for Mac OS X
After installing Node.js on your Mac, proceed to open your command-line application and input the following command:
$ sudonpm install -g ionic
After inputting this command, you will be prompted to input your password as shown in the following screenshot:
If you have already set up the permissions for npm
on OS X, you can install Ionic with the following command:
$ npm install -g ionic
The preceding command line should result in the following output:
Installing Cordova on OS X is very similar to installing Ionic. You can run the following command to install Cordova:
$ sudonpm install -g cordova