NOTE: You must have installed Node.js before proceeding with this section.
To install Cordova, perform the following steps:
- Open Terminal.
- At the command prompt, enter the following command:
$ sudo npm install –g cordova
Cordova gets installed.
- To check the version of Cordova installed, enter the following command:
$ cordova –version
The installed version of Cordova is displayed.
- Continue with the Install JDK section.