无法使用 Visual Studio 2013 运行 Cordova 应用程序

问题描述:

我已成功安装了多设备混合应用"所需的所有第三方设置.但是当我使用 Visual Studio 2013 运行我的应用程序时,它给了我以下两个错误:

I have installed all third party setups required for "Multi Device Hybrid Apps" successfully. But when i go to run my app using Visual Studio 2013 it gives me following two errors :

Error 1:    cmd: Command failed with exit code 255  
Error 2: The command ""C:\Users\PC-Name\AppData\Roaming\npm\node_modules\vs-mda\vs-cli"
    prepare --platform Android --configuration Debug --projectDir . --projectName "Test2"
    --language "en-US"" exited with code 8.

我已经检查了所有位于正确变量中的环境变量.

I have checked all Environment Variables which are at there right variables.

请告诉我如何摆脱上述错误......

Kindly tell me how to get rid off from above errors.....

我找到了真正的原因,只需更新您的 node.js 或从项目目录路径中删除空格.

I figured out the real cause, just update your node.js or either remove spaces from project directory path.

例如:
在项目目录路径之前:C:/Users/Jon Snow/MyProjects/ProjectName
在项目目录路径之后:C:/Users/JonSnow/MyProjects/ProjectName

For Example :
Before Project Directory Path : C:/Users/Jon Snow/MyProjects/ProjectName
After Project Directory Path : C:/Users/JonSnow/MyProjects/ProjectName