0

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

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 进行操作,但也没有运气。并且错误列表窗口中没有错误。

叹息

建议,好吗?

4

1 回答 1

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
于 2015-03-08T16:03:07.713 回答