Visual Studio iOS 部署失败,因为 "The edge module has not been pre-compiled"

Visual Studio iOS deployment fails because "The edge module has not been pre-compiled"

我正在尝试将 HTML/CSS/JS Apache Cordova 应用程序从 windows 机器部署到 Mac。我相信他们正在通过 remotebuild 代理正确通信,但是当我尝试构建一个空白项目以部署在 Mac 上时,在构建的最开始会抛出此错误:

MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1. You must build a custom version of edge.node. Please refer to https://github.com/tjanczuk/edge for building instructions.

我已遵循 link 并搜索了有关如何修复此错误的解决方案,但 link 似乎根本不适用于我正在做的事情。我没有在我的代码中使用任何 node.js 函数,所以我很困惑为什么会出现这个错误。我只是想构建一个几乎空白的 HTML 页面,但无论我制作的页面多么简单,我仍然会收到错误消息。

我该如何解决这个问题?消除此错误的最佳方法是什么,或者根据错误提示预编译 edge 以使用 node.js 4.1.1 版?

@达斯汀,
您对 Cordova 的工作原理有误解。你说你想部署到 Mac,但我认为你的意思是 iOS。如果是这样,您应该阅读:

iOS 开发需要什么?
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/bf1Hgkel3W4

我引用

The short and sweet of it is as follows:

  • You need OS X + Xcode
  • You need several iDevices
  • You need /year for Apple Developer program (which you've already indicated is not a problem)

All of the above = cost-of-doing-business.

如果您阅读整个主题(尤其是来自 Kerri Shotz 的部分),您将获得更多信息和更多选择。

祝你好运

Cordova 5.3.1 和 Node v4 存在问题。 https://github.com/Microsoft/cordova-docs/blob/master/articles/known-issues/known-issues-ios.md#building-for-ios-hangs-when-nodejs-v40-is-installed

我通过卸载 Node v4.1.1 并安装 Node v0.12.7 来修复 https://nodejs.org/en/download/releases/

在失去了一点希望并阅读了很多帖子、博客和 bug 解决方法后,我决定单击 Visual Studio 中的 'Run Dependency Checker' 按钮 - 工具 ->选项 -> Apache Cordova 工具 -> Cordov 工具。这个检查员告诉我 Joyent Node.js 已经安装了。我确实在最新版本上设置了 node.js 和 npm,我不确定有什么区别。

我完成了修改 VS 安装(更改或删除程序)的过程,果然没有检查 Joyent Node.js。我检查了它并完成了安装过程。

我的 VS 安装现在如下所示,我的项目正在构建时没有:

MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1