O'Reilly logo

PhoneGap 4 Mobile Application Development Cookbook by Zainul Setyo Pamungkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. 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:
    How to do it...
  2. Download Cordova by running the following command on your terminal or Command Prompt:
    npm install -g cordova
    
  3. Check your Cordova installation by running cordova —v. You will see something like this if Cordova is installed correctly:

How it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required