无法在Windows上构建Cordova

时间:2019-04-18 04:36:17

标签: windows cordova

我正在Windows 10上通过cordova构建Windows应用程序。我使用的命令是cordova build windows -- --win。但是我遇到了以下错误:

EXEC : warning : Start page is missing on the disk. The build must go on but note that this will cause WACK failures. [
C:\dev\ap-ui\packages\app\mobile\platforms\windows\CordovaApp.Windows10.jsproj]
MakeAppx : error : Manifest validation error: Line 36, Column 52, Reason: The file name "www\index.html" declared for e
lement "*[local-name()='Applications']/*[local-name()='Application']/*[local-name()='Extensions']/*[local-name()='Exten
sion']" doesn't exist in the package. [C:\dev\ap-ui\packages\app\mobile\platforms\windows\CordovaApp.Windows10.jsproj]
MakeAppx : error : Package creation failed. [C:\dev\ap-ui\packages\app\mobile\platforms\windows\CordovaApp.Windows10.js
proj]
MakeAppx : error : 0x80080204 - The specified package format is not valid: The package manifest is not valid. [C:\dev\a
p-ui\packages\app\mobile\platforms\windows\CordovaApp.Windows10.jsproj]

我已经安装了vistual studio 2017并设置了环境变量VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin

我使用此命令添加Windows平台:cordova platform add windows

科尔多瓦版本为"çordova": "8.0.0"

0 个答案:

没有答案