Configuring a Cordova Development Environment
Before you can build applications using Apache Cordova, you must set up the appropriate development environment. The challenge for Cordova developers is that you must install the native SDKs, the software components the Cordova CLI requires, and finally the Cordova CLI. There’s a lot to install, and the required components come from a lot of different sources. The good news is that all of the tools you will need are free and just a download away.
Chapter 3 of Apache Cordova 3 Programming describes the whole installation process in detail; you will need to refer to the Apache Cordova documentation or the book for the complete installation details. There are a lot of moving parts to this, and for that reason many people find the initial setup to be the hardest part of Cordova development.