简体   繁体   English

无法在Windows 7上构建Cordova应用

[英]Can't build cordova app on windows 7

I went through the whole process to initialize a cordova app from the command line as state on this webpage . 我经历了整个过程,从命令行将Cordova应用程序初始化为此网页上的状态。 I added the windows platform with the command cordova platform add windows , and then tried to build it. 我使用命令cordova platform add windows添加了Windows平台,然后尝试构建它。 But I got an error saying that I may not have the required environment or OS to build this project. 但是我收到一个错误消息,说我可能没有构建此项目所需的环境或操作系统。 I'm not sure what that means or what I should do, this error isn't described on the webpage I've linked. 我不确定这意味着什么或应该做什么,我链接的网页上没有描述此错误。

From the Windows Platform Guide : Windows平台指南中

This guide shows how to set up your SDK development environment to build and deploy Cordova apps for Windows 8, Windows 8.1, Windows Phone 8.1, and Windows 10 Universal App Platform. 本指南说明如何设置SDK开发环境,以针对Windows 8,Windows 8.1,Windows Phone 8.1和Windows 10 Universal App Platform构建和部署Cordova应用程序。

There is no mention of Windows 7 which is what you state in your title. 标题中没有提到Windows 7。 Thus the "Windows Platform" may not be supported on that version of Windows. 因此,该版本的Windows可能不支持“ Windows平台”。 Imagine trying to build a Windows application in Windows 95 today or Windows 98? 想像一下要在今天的Windows 95或Windows 98中构建Windows应用程序吗? You likely wouldn't do it as they are too old which is how some may view Windows 7 today as there are a few newer versions out there to support. 您可能不会这样做,因为它们太旧了,这是当今一些人可能会认为Windows 7的方式,因为那里有一些较新的版本要支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM