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:
- Install Node.js (SUCCESSFUL)
- From nodes.js:
install -g cordova
(SUCCESSFUL) - Add Platform:
cordova platform add wp8
(NOTHING HAPPENS) - Try with phonegap:
phonegap install wp8
(ERROR project directory could not be found)
From "Windows Phone 8 platform guide"
- Install Windows SDK (SUCCESSFUL)
- "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.
cordova create hello com.example.hello HelloWorld
in the directory that you want the code to be in, and then runcordova platform add wp8
in the project directory that you just created. – dfockler