Windows Phone 8上的Cordova应用程序部署失败,退出代码为2

时间:2015-09-08 11:33:02

标签: windows-phone-8 windows-phone visual-studio-cordova

我正在尝试使用CLI在Windows Phone 8模拟器上部署空白cordova应用程序,但在运行命令cordova模拟wp8时会收到以下错误消息。

Deploying package to emulator
Error: Invalid target device specified.

ERROR: Error code 2147942487 for command: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\Xap Deployment\XapDeployCmd.exe with args: /installlaunch,D:/MHIS/platforms/wp8/Bin/debug/CordovaAppProj_Debug_AnyCPU.xap,/targetdevice:xd
Error: cmd: Command failed with exit code 2
at ChildProcess.whenDone (C:\Users\sumits\AppData\Roaming\npm\node_modules\cordova\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)

这是什么原因?我可以在模拟器上从Visual Studio部署一个空白的应用程序,没有任何问题。我也安装了Windows Phone 8.1 SDK和Emulator。

0 个答案:

没有答案