0
ui5 init --verbose
verb cli:middlewares:base using @ui5/cli version 2.6.4 (from /X/.npm-global/lib/node_modules/@ui5/cli/bin/ui5.js)
verb cli:middlewares:base using node version v14.15.1

⚠️  Process Failed With Error

Error Message:
Could not detect project type: Could not find 'webapp' or 'src' / 'test' folders.
Applications should only have a 'webapp' folder.
Libraries should only have a 'src' and (optional) 'test' folder.

Stack Trace:
Error: Could not detect project type: Could not find 'webapp' or 'src' / 'test' folders.
Applications should only have a 'webapp' folder.
Libraries should only have a 'src' and (optional) 'test' folder.
    at getProjectType (/X/.npm-global/lib/node_modules/@ui5/cli/lib/init/init.js:54:9)
    at Object.init (/X/.npm-global/lib/node_modules/@ui5/cli/lib/init/init.js:92:23)
    at async Object.initCommand.handler (/X/.npm-global/lib/node_modules/@ui5/cli/lib/cli/commands/init.js:22:24)

我所要做的就是首先mkdir webapp取得成功。我做错了什么还是文档/工具不正确?

4

1 回答 1

1

可能有误会。

ui5 init工具只会创建稍后用于预览您的(现有)应用程序ui5.yaml所需的内容,它不会生成应用程序。ui5 serve

如果您从UI5 模板之一开始您的 UI5 应用程序并使其适应您的需求,那就太好了。

于 2020-12-02T08:58:30.593 回答