为什么在构建混合应用程序时会出错

时间:2014-12-04 06:39:42

标签: visual-studio-2013 visual-studio-cordova multi-device-hybrid-apps

当我尝试构建和部署新的混合应用程序模板(未完成任何更改)时,构建失败并收到此输出:

1>------ Rebuild All started: Project: BlankCordovaApp2, Configuration: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1>  GeneratedJavascript=
1>  C:\Users\YA\documents\visual studio 2013\Projects\BlankCordovaApp2\BlankCordovaApp2>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : "MySQL" �� ���� ����७��� ��� ���譥�
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : ��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : "MySQL" �� ���� ����७��� ��� ���譥�
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets(208,5): error : ��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.
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\SLSJAGN5.MZC\packages\vs-mda
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

也许错误文本是俄语,但我无法弄清楚如何在输出窗口中更改编码。我使用俄语Windows 7,但VS(2013社区)是故意用英语设置的,没有任何语言包。在其他PC上之前,输出中的俄语文本从未出现任何问题。此外,我已经检查了与Cordova相关的其他一些主题中提到的所有环境变量,它们似乎没问题。

有关如何跟踪和解决此问题的任何建议吗?

编辑:由于初始系统暂时无法使用,我已经在我的家庭系统上尝试过了。我收到了另一个输出,但结果相同 - 构建失败:

1>------ Rebuild All started: Project: BlankCordovaApp4, Configuration: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1>  GeneratedJavascript=
1>  d:\mydocuments\visual studio 2013\Projects\BlankCordovaApp4\BlankCordovaApp4>call "C:\Program Files (x86)\nodejs\"\nodevars.bat 
1>  Your environment has been set up for using Node.js 0.10.26 (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\0N5RFQMM.AHA\packages\vs-mda
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

系统是Windows 7 x64 HP。我检查过没有失败的依赖报告。仍然没有结果。我试图遵循这个Unable to build Cordova project in Visual Studio,但也没有运气。错误列表窗口中没有错误。

叹息

建议,pleeease?

1 个答案:

答案 0 :(得分:0)

我已经解决了删除这里所说的内容:'MySQL' is not recognized as an internal command (Apache Cordova for visual studio)以及删除C:\Users\Miquel\AppData\Roaming\npm\node_modules\vs-mda\node_modules\*.*C:\Users\Miquel\AppData\Roaming\npm-cache\*.*

然后在cmd中我去了C:\Users\Miquel\AppData\Roaming\npm\node_modules\vs-mda并跑了:

npm install