Windows – Phonegap Cordova installation Windows

cordovawindows

The documentation for phonegap/cordova is absolutely horrible. All I'm trying to do is install PhoneGap 3.0 on my Windows environment but having no success.

Below are my steps and points of failure. Can anyone advise on solutions?

According to the instructions:

  1. Install Node.js (SUCCESSFUL)
  2. From nodes.js: install -g cordova (SUCCESSFUL)
  3. Add Platform: cordova platform add wp8 (NOTHING HAPPENS)
  4. Try with phonegap: phonegap install wp8 (ERROR project directory could not be found)

From "Windows Phone 8 platform guide"

  1. Install Windows SDK (SUCCESSFUL)
  2. "Download and extract the latest copy of [PhoneGap. You will be working in the lib\windows-phone-8\wp8 subfolder, lib\windows-phone-8\wp7 contains the Windwos Phone 7 version of Cordova"

HUH?!?! What location is the directory in?!?! So I've found the undocumented phonegap directory buried in AppData\Local… and there IS a libs directory but there certainly is NOT any WP8 subfolders. Where would one install that from? Presumably the add platform command above, but add that simply returns me to a new command prompt.

Tried using the phonegap command: phonegap plaform add wp8

ERROR – 'platform add wp8" is not a node.

I get its open source but this is brutal spaghetti reference documentation. If anyone has been able to successfully install 3.0 for WP8 any pointers would be help.

Best Answer

After hours of frustration... here's what i discovered.

  1. Ignore the installation documentation and all the command line, node.js stuff (seriously you will waste hours on this.
  2. Go to github and simply download the PhoneGap master .zip
  3. In that zip are project files for window phone, etc platform... just use those templates.

I don't know how such an easy process could have worse documentation. It as if it was written by lawyers.

Related Topic