在Windows 7上用phonegap cordova编译

时间:2015-07-17 15:10:12

标签: cordova windows-phone

我在尝试编译Windows Phone应用程序时遇到了一些问题。

我在控制台中遇到的错误是:

C:\Program Files\MSBuild\Microsoft\VisualStudio\v12.0\AppxPackage\Microsoft.App
XPackage.Targets(1752,9): error MSB6006: "MakeAppx.exe" salió con el código 1.
[C:\Users\oboz\Desktop\myapp\platforms\windows\CordovaApp.Windows.jsproj]
ERROR: Error code 1 for command: C:\Program Files\MSBuild\12.0\bin\msbuild with
args: C:\Users\oboz\Desktop\myapp\platforms\windows\CordovaApp.Windows.jsproj,/clp
:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debu
g,/p:Platform=anycpu
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\oboz\AppData\Roaming\npm\node_modules\cor
dova\node_modules\cordova-lib\src\cordova\superspawn.js:134: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)

我的操作系统是Windows 7 32位,我已经安装了Visual Studio 2010和2013以及适用于Windows Phone 8的SDK,但似乎一切正常。我将非常感谢你能给我的任何帮助。我正在使用node.js和cordova的最新版本。

0 个答案:

没有答案