cordova在Windows 7中构建窗口失败 [英] cordova build windows in windows 7 failed

查看:89
本文介绍了cordova在Windows 7中构建窗口失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行命令cordova build windows时,得到以下错误:

When I run the command "cordova build windows" I am getting the following error:

ERROR: No valid MSBuild was detected for the selected target.
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2

You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
at ChildProcess.whenDone (C:\Users\test\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

I没有在我的机器上安装Visual Studio。我安装了.Net 4,使用的Cordova版本是5.3.3。和我的
操作系统是Windows 7。

I don't have Visual Studio installed on my machine. I have .Net 4 installed, the Cordova version used is 5.3.3. and my OS is Windows 7.

请使用Visual Studio建议一种构建方式。

Please suggest a way to build without using Visual Studio.

推荐答案

您需要运行Windows 8或8.1机器才能继续。请阅读 Cordova平台指南更多信息。

You will need to have a running windows 8 or 8.1 machine to proceed. Please read the Cordova platform guide for further information.

这篇关于cordova在Windows 7中构建窗口失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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