Book Image

PhoneGap 4 Mobile Application Development Cookbook

Book Image

PhoneGap 4 Mobile Application Development Cookbook

Overview of this book

Table of Contents (19 chapters)
PhoneGap 4 Mobile Application Development Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

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:

  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 works...

We installed Node.js from the official site. Then we used the Node Package Manager to download and install Cordova.