英文:
Composer could not find typo3cms when running `fixfolderstructure` in TYPO3
问题
在将 TYPO3 从 v10 升级到 v11 的过程中运行 composer install
或 composer 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:*
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论