Composer在运行TYPO3的`fixfolderstructure`时找不到typo3cms。

huangapple go评论87阅读模式
英文:

Composer could not find typo3cms when running `fixfolderstructure` in TYPO3

问题

在将 TYPO3 从 v10 升级到 v11 的过程中运行 composer installcomposer update 时,我遇到以下错误消息:
> sh: 1: typo3cms: 未找到

或者
> Der Befehl "typo3cms" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

接着是:
> Script typo3cms install:fixfolderstructure 处理 typo3-cms-scripts 事件时返回错误代码 1
Script @typo3-cms-scripts 是通过 post-autoload-dump 调用的

在我的 composer.json 文件中,我有以下代码来触发这些脚本:

    "scripts":{
        "typo3-cms-scripts": [
            "typo3cms install:fixfolderstructure"
        ],
        "post-autoload-dump": [
            "@typo3-cms-scripts"
        ]
    },

这里发生了什么问题?

英文:

When running composer install or composer update during the upgrade process from TYPO3 v10 to v11 I face the following error messages:
> sh: 1: typo3cms: not found

or
> Der Befehl "typo3cms" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

followed by
> Script typo3cms install:fixfolderstructure handling the typo3-cms-scripts event returned with error code 1
Script @typo3-cms-scripts was called via post-autoload-dump

In my commposer.json I have those lines, triggering the scripts:

    "scripts":{
        "typo3-cms-scripts": [
            "typo3cms install:fixfolderstructure"
        ],
        "post-autoload-dump": [
            "@typo3-cms-scripts"
        ]
    },

What is going wrong here?

答案1

得分: 1

添加TYPO3控制台后,错误消失。

composer require helhum/typo3-console:*

英文:

After adding the TYPO3 Console the error disappeared.

composer require helhum/typo3-console:*

huangapple
  • 本文由 发表于 2023年7月24日 19:15:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76753910.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定