我正在尝试将 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.
我已点击链接并搜索了有关如何修复此错误的解决方案,但该链接似乎根本不适用于我正在做的事情。我没有在我的代码中使用任何 node.js 函数,所以我很困惑为什么会出现这个错误。我只是想构建一个几乎空白的 HTML 页面,但无论我制作的页面多么简单,我仍然会收到错误消息。
我该如何修复这个解决方案?消除此错误或根据错误建议预编译边缘以使用 node.js 4.1.1 版的最佳方法是什么?
最佳答案
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/
关于ios - Visual Studio iOS 部署失败,因为 "The edge module has not been pre-compiled",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32848150/