Phonegap Cordova 安装 Windows [英] Phonegap Cordova installation Windows

查看:33
本文介绍了Phonegap Cordova 安装 Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

phonegap/cordova 的文档非常糟糕.我要做的就是在我的 Windows 环境中安装 PhoneGap 3.0,但没有成功.

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?

根据说明:

  1. 安装 Node.js(成功)
  2. 来自nodes.js:install -g cordova(成功)
  3. 添加平台:cordova platform add wp8(什么都没发生)
  4. 尝试使用phonegap:phonegap install wp8(找不到错误项目目录)
  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)

来自 "Windows Phone 8 平台指南"

  1. 安装 Windows SDK(成功)
  2. 下载并解压缩 [PhoneGap 的最新副本.您将在 libwindows-phone-8wp8 子文件夹中工作,libwindows-phone-8wp7 包含 Cordova 的 Windwos Phone 7 版本"

嗯?!?!目录在什么位置?!?!所以我发现了隐藏在 AppDataLocal 中的未记录的 phonegap 目录......并且有一个 libs 目录,但肯定没有任何 WP8 子文件夹.从哪里安装?大概是上面的 add platform 命令,但添加它只会让我返回一个新的命令提示符.

HUH?!?! What location is the directory in?!?! So I've found the undocumented phonegap directory buried in AppDataLocal... 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.

尝试使用phonegap命令:phonegap plaform add wp8

Tried using the phonegap command: phonegap plaform add wp8

错误 - 'platform add wp8' 不是节点.

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

我得到了它的开源,但这是残酷的意大利面条式参考文档.如果有人能够成功地为 WP8 安装 3.0,任何指针都会有所帮助.

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.

推荐答案

经过数小时的挫折......这就是我的发现.

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

  1. 忽略安装文档和所有命令行、node.js 的东西(说真的,你会在这上面浪费几个小时.
  2. 转到 github 并只需下载 PhoneGap master .zip
  3. 在那个 zip 中是用于窗口手机等平台的项目文件......只需使用这些模板.
  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.

这篇关于Phonegap Cordova 安装 Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆