首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >新项目的ui5 init失败

新项目的ui5 init失败
EN

Stack Overflow用户
提问于 2020-11-22 10:03:27
回答 1查看 649关注 0票数 0
代码语言:javascript
复制
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并取得进一步的成功。我做错什么了还是文档/工具不正确?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-02 08:58:30

可能会有误会。

ui5 init从工具将只创建ui5.yaml所需的使用ui5 serve以后预览您的(现有)应用,它将而不是生成一个应用程序。

如果你开始你的UI5应用程序与UI5模板之一,并使它适应你的需要,这将是很好的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64952842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档