Downloading Cordova
Before we develop any Cordova applications, we need to download a copy of the framework, of course.
How to do it...
In this recipe, we will download the Cordova framework to make sure that we have the framework available to start local development:
Cordova needs Node.js to be installed first. Head over to https://nodejs.org/en/download/ and download the installer for your machine, as shown here:
Download Cordova by running the following command on your terminal or Command Prompt:
npm install -g cordova
Check your Cordova installation by running
cordova —v
. You will see something like this if Cordova is installed correctly:
How it works...
We installed Node.js from the official site. Then we used the Node Package Manager to download and install Cordova.