我正在尝试使用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。