【问题标题】:Can't update windows8 project by using Cordova CLI无法使用 Cordova CLI 更新 windows8 项目
【发布时间】:2014-02-14 19:21:37
【问题描述】:

我使用 cordova CLI 创建了我的 windows 8 项目。

cordova platform add windows8
cordova build windows8

但是,当我尝试按照PhoneGap Documentation 上的步骤更新项目时。我收到一条错误消息,指出“提供的路径不是cordova windows phone 项目的路径”。

C:\Developer\CordovaLibraryProject>cordova platform update windows8
Error: Update script failed: Error: Command failed: The path provided is not a path to a cordova windows phone project.
Please provide the path to the root folder of your cordova windows phone project.
The path provided is not a path to a cordova windows phone project.
Please provide the path to the root folder of your cordova windows phone project.

    at C:\Users\stan\AppData\Roaming\npm\node_modules\cordova\src\platform.js:140:38
    at ChildProcess.exithandler (child_process.js:641:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

这是 Cordova 中的错误吗?如果没有,我该如何更新我的 windows8 项目?

【问题讨论】:

    标签: cordova windows-applications cordova-cli


    【解决方案1】:

    我在 3.4.1 中遇到了同样的问题

    好像update命令不支持windows8。 cordova-cli readme 通过不在 Windows 8 部分下列出更新命令来建议这一点。

    更具体的证据是 windows8 update.js 命令显式查找“windows phone”项目,然后抛出您看到的错误。我使用引号是因为它通过检查 windows8 目录中的 .csproj 文件来做到这一点。

    我尝试通过在我的 platforms\windows8 文件夹中放置一个 dummy.csproj 文件来安装它。这让我更进一步,但仍然失败。

    您要升级的版本可能与此有关,因此值得一试。

    update.js 一年没有被updated(没有双关语)。我会称之为错误

    我已将此提交给他们的错误跟踪器:https://issues.apache.org/jira/browse/CB-6748

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-06
      • 2019-12-07
      • 2019-03-06
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 1970-01-01
      相关资源
      最近更新 更多