I am trying to deploy a HTML/CSS/JS Apache Cordova application from a windows machine to a Mac. I believe they are communicating properly through the remotebuild agent but when I attempt to build a blank project to deploy on the Mac this error is thrown at the very beginning of the build:
我试图部署一个HTML / CSS / JS Apache科尔多瓦应用程序从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.
I have followed the link and have searched for the solution as to how to fix this error but the link does not seem to apply to what I am doing at all. I am not using any node.js functions in my code so I am confused as to why this error is occuring. I am only trying to build a nearly blank HTML page and I still get the error regardless of how simple I make the page.
我已经跟踪了这个链接,并寻找了解决这个错误的方法,但是这个链接似乎并不适用于我正在做的事情。我没有使用任何节点。js函数在我的代码中,所以我很困惑为什么会出现这个错误。我只是想构建一个几乎空白的HTML页面,我仍然会得到错误,不管我如何简单地创建页面。
How can I go about fixing this solution? what is the best way to get rid of this error or to as the error suggests pre-compile edge to work with node.js version 4.1.1?
我该如何解决这个问题呢?什么是最好的方法来摆脱这个错误或由于错误提示预编译边与节点一起工作。以下4.4.1 js版本?
3 个解决方案
#1
1
There is an issue with Cordova 5.3.1 and 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
Cordova 5.3.1和节点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
I fixed by uninstalling Node v4.1.1 and installing Node v0.12.7 https://nodejs.org/en/download/releases/
我通过卸载节点v4.1.1和安装节点v0.12.7 https://nodejs.org/en/download/releases/来修复。
#2
0
@Dustin,
you have a misconception about how Cordova works. You say you want to deploy to a Mac, but I think you mean iOS. If so, you should read:
@Dustin,你对科尔多瓦的工作方式有误解。你说你想把它部署到Mac上,但我认为你指的是iOS。如果是,你应该阅读:
What's needed for iOS Development?
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/bf1Hgkel3W4
iOS开发需要什么?https://groups.google.com/forum/?fromgroups= # ! / phonegap / bf1Hgkel3W4话题
I Quote
我引用
The short and sweet of it is as follows:
它的简短和甜蜜如下:
- You need OS X + Xcode
- 你需要OS X + Xcode。
- You need several iDevices
- 你需要几个苹果设备
- You need $99/year for Apple Developer program (which you've already indicated is not a problem)
- 你需要99美元/年的苹果开发者计划(你已经指出这不是一个问题)
All of the above = cost-of-doing-business.
以上都是经营成本。
If you read the entire thread (especially the part from Kerri Shotz), you will get more information and more options.
如果您阅读了整个线程(特别是来自Kerri Shotz的部分),您将获得更多的信息和更多的选项。
Best of Luck
最好的运气
#3
0
After losing a fair bit of hope and following a lot of posts, blogs and bug work-arounds with no luck I decided to click on the 'Run Dependency Checker' button in Visual Studio - Tools -> Options -> Tools For Apache Cordova -> Cordov Tools. This checker told me that Joyent Node.js wast installed. I did have node.js and npm set up on the latest version, im not sure what the difference is.
在失去了一些希望和大量的帖子、博客和bug之后,我决定点击Visual Studio - Tools ->选项->选项的“运行依赖检查器”按钮,用于Apache Cordova -> Cordov工具。这个检查器告诉我,Joyent节点。js早已安装。我确实有节点。js和npm是在最新版本上建立的,我不知道它们的区别是什么。
I went through the process of modifying the VS installation (change or remove a program) and sure enough Joyent Node.js wasnt checked. I cheked it and it went through the process of installing.
我经历了修改VS安装(更改或删除程序)的过程,并确定了足够的Joyent节点。js没有检查。我把它切了一下,它就穿过了安装的过程。
My VS installation now looks like the below and my project is building without:
我的VS安装现在看起来像下面,我的项目是没有:
MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1
#1
1
There is an issue with Cordova 5.3.1 and 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
Cordova 5.3.1和节点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
I fixed by uninstalling Node v4.1.1 and installing Node v0.12.7 https://nodejs.org/en/download/releases/
我通过卸载节点v4.1.1和安装节点v0.12.7 https://nodejs.org/en/download/releases/来修复。
#2
0
@Dustin,
you have a misconception about how Cordova works. You say you want to deploy to a Mac, but I think you mean iOS. If so, you should read:
@Dustin,你对科尔多瓦的工作方式有误解。你说你想把它部署到Mac上,但我认为你指的是iOS。如果是,你应该阅读:
What's needed for iOS Development?
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/bf1Hgkel3W4
iOS开发需要什么?https://groups.google.com/forum/?fromgroups= # ! / phonegap / bf1Hgkel3W4话题
I Quote
我引用
The short and sweet of it is as follows:
它的简短和甜蜜如下:
- You need OS X + Xcode
- 你需要OS X + Xcode。
- You need several iDevices
- 你需要几个苹果设备
- You need $99/year for Apple Developer program (which you've already indicated is not a problem)
- 你需要99美元/年的苹果开发者计划(你已经指出这不是一个问题)
All of the above = cost-of-doing-business.
以上都是经营成本。
If you read the entire thread (especially the part from Kerri Shotz), you will get more information and more options.
如果您阅读了整个线程(特别是来自Kerri Shotz的部分),您将获得更多的信息和更多的选项。
Best of Luck
最好的运气
#3
0
After losing a fair bit of hope and following a lot of posts, blogs and bug work-arounds with no luck I decided to click on the 'Run Dependency Checker' button in Visual Studio - Tools -> Options -> Tools For Apache Cordova -> Cordov Tools. This checker told me that Joyent Node.js wast installed. I did have node.js and npm set up on the latest version, im not sure what the difference is.
在失去了一些希望和大量的帖子、博客和bug之后,我决定点击Visual Studio - Tools ->选项->选项的“运行依赖检查器”按钮,用于Apache Cordova -> Cordov工具。这个检查器告诉我,Joyent节点。js早已安装。我确实有节点。js和npm是在最新版本上建立的,我不知道它们的区别是什么。
I went through the process of modifying the VS installation (change or remove a program) and sure enough Joyent Node.js wasnt checked. I cheked it and it went through the process of installing.
我经历了修改VS安装(更改或删除程序)的过程,并确定了足够的Joyent节点。js没有检查。我把它切了一下,它就穿过了安装的过程。
My VS installation now looks like the below and my project is building without:
我的VS安装现在看起来像下面,我的项目是没有:
MDAVSCLI : error : The edge module has not been pre-compiled for node.js version v4.1.1