命令失败,Visual Studio 2013中的退出代码ENOENT

时间:2014-12-01 10:56:53

标签: android node.js visual-studio cordova visual-studio-2013

您好,我在尝试在Visual Studio 2013社区版

中构建我的应用程序时遇到此错误
1>------ Build started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1>Build started 12/1/2014 4:12:42 PM.
1>TrackJsChanges:
1>  GeneratedJavascript=scripts\index.js;scripts\index.js.map;scripts\platformOverrides.js;scripts\platformOverrides.js.map
1>InstallMDATargets:
1>  D:\VBWORKSPACE\BlankCordovaApp2\BlankCordovaApp2>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 
1>  Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.
1>  ------ Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\DOFNNIMZ.R4T\packages\vs-mda
1>MDAVSCLI : error : C:\Users\sourav.phukon\.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\create: Command failed with exit code ENOENT
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:11.87
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

Please suggest how can i resolved this issue.....

1 个答案:

答案 0 :(得分:1)

我得到了解决方案.... 只需转到工具 - >选项 - >用于Apache Cordova的工具 - > Cordova工具 - >清除Cordova缓存,它工作正常..

当我第一次尝试时,我在bulid期间遇到了另一个不同的错误  MDAVSCLI:错误:找不到模块'q'错误 如果你有这个错误打开cmd提示并尝试这个cmd npm install ripple -g

尝试再次清理cordava并创建一个新项目,现在它对我来说很好......