# Composer failure during installation

**URL:** <https://forum.shopware.com/t/composer-failure-during-installation/93322>\
**Category:** Installation / Getting Started (EN)\
**Created:** [9. März 2022 um 10:49 UTC](https://forum.shopware.com/t/composer-failure-during-installation/93322 "2022-03-09T10:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobanker](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@nobanker](https://forum.shopware.com/u/nobanker)\
**Post date:** [9. März 2022 um 10:49 UTC](https://forum.shopware.com/t/composer-failure-during-installation/93322/1 "2022-03-09T10:49:03Z")

</div>

i get these messages from composer

> [! -f vendor/autoload.php] || $PHP\_BINARY bin/console system:update:prepare  
> PHP Warning: Unsupported declare ‚strict\_types‘ in /home/user/www/shopware/bin/console on line 2  
> PHP Parse error: syntax error, unexpected ‚?‘ in /home/user/www/shopware/bin/console on line 37  
> Script [! -f vendor/autoload.php] || $PHP\_BINARY bin/console system:update:prepare handling the pre-install-cmd event returned with error code 255

---

<div class="post-metadata">

**Author:** ![marco.steinhaeuser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/marco.steinhaeuser/32/14512_2.png) [@marco.steinhaeuser](https://forum.shopware.com/u/marco.steinhaeuser)\
**Post date:** [9. März 2022 um 20:09 UTC](https://forum.shopware.com/t/composer-failure-during-installation/93322/2 "2022-03-09T20:09:09Z")

</div>

Hello and welcome @nobanker,

for me, it looks like you either don’t run the appropriate PHP version on CLI or your system cache is not writable - just a wild guess 😉

---

<div class="post-metadata">

**Author:** ![nobanker](https://avatars.discourse-cdn.com/v4/letter/n/71e660/32.png) [@nobanker](https://forum.shopware.com/u/nobanker)\
**Post date:** [12. März 2022 um 12:37 UTC](https://forum.shopware.com/t/composer-failure-during-installation/93322/3 "2022-03-12T12:37:10Z")

</div>

yes, that server had an old php  
now i put php 7.4 but still have installation issues

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [17. April 2024 um 22:02 UTC](https://forum.shopware.com/t/composer-failure-during-installation/93322/4 "2024-04-17T22:02:31Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
