本文介绍,当在 SAP UI5 应用工程文件夹里,执行 ui5 serve
命令行,试图启动本地 Web 服务器,加载 SAP UI5 应用时,遇到如下错误消息:
Process Failed With Error
Error Message:
Invalid ui5.yaml configuration for project sap.m.tutorial.walkthrough.24
Unsupported “specVersion”
C:\Code\UI5\Walkthrough\24_B\ui5.yaml:15
13: mountPath: /
14: —
15: specVersion: ‘3.0’
^
Your UI5 CLI installation might be outdated.
Supported specification versions: “2.6”, “2.5”, “2.4”, “2.3”, “2.2”, “2.1”, “2.0”, “1.1”, “1.0”, “0.1”
For details see:https://sap.github.io/ui5-tooling/pages/Configuration/#specification-versions
我们来仔细分析这些错误消息。