# Build-storefront wird nicht erstellt, gibt nichts aus

**URL:** <https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413>\
**Category:** Programmierung\
**Created:** [27. September 2022 um 13:06 UTC](https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413 "2022-09-27T13:06:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiliahenk](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@emiliahenk](https://forum.shopware.com/u/emiliahenk)\
**Post date:** [27. September 2022 um 13:06 UTC](https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413/1 "2022-09-27T13:06:46Z")

</div>

Hallihallo,  
ich probiere gerade ein Plugin zu schreiben um per AJAX Content zu laden,  
allerdings wird in den Docs geschrieben das man den Storefront build ausführen muss.  
Ich habe das auch gemacht, aber bei mir wird der Storefront nicht erstellt.

Ich benutz folgenden Command dafür:  
/opt/plesk/php/7.4/bin/php bin/build-storefront.sh  
In der Konsole kommt nur:

```auto
CWD="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"

export PROJECT_ROOT="${PROJECT_ROOT:-"$(dirname "$CWD")"}"
STOREFRONT_ROOT="${STOREFRONT_ROOT:-"${PROJECT_ROOT}/vendor/shopware/storefront"}"

# build storefront
[[${CI}]] || "${CWD}/console" bundle:dump
npm --prefix "${STOREFRONT_ROOT}"/Resources/app/storefront clean-install
node "${STOREFRONT_ROOT}"/Resources/app/storefront/copy-to-vendor.js
npm --prefix "${STOREFRONT_ROOT}"/Resources/app/storefront run production
[[${CI}]] || "${CWD}/console" asset:install
[[${CI}]] || "${CWD}/console" theme:compile

```

Ohne die PHP Version anzugeben kommen nur Fehlermeldungen und Warnings, das gleiche aber auch bei theme:compile oder cache:clear.  
Weiß jemand da vielleicht weiter? Habe fast einen halben Tag damit verbracht gehabt aber keine Lösung finden können ☹

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [27. September 2022 um 17:58 UTC](https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413/2 "2022-09-27T17:58:42Z")

</div>

Naja build-storefront.sh ist ja ein Shell Script. Führ das Shell Script mit `./bin/build-storefront.sh` aus.

vg

---

<div class="post-metadata">

**Author:** ![emiliahenk](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@emiliahenk](https://forum.shopware.com/u/emiliahenk)\
**Post date:** [27. September 2022 um 18:22 UTC](https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413/3 "2022-09-27T18:22:39Z")

</div>

Hi, danke erst mal für die Antwort.  
Leider klappt das nicht, es kommt dann:

```auto
PHP Warning: Unsupported declare 'strict_types' in /var/www/vhosts/shopurlt/httpdocs/bin/console on line 2
PHP Parse error: syntax error, unexpected '?' in /var/www/vhosts/shopurl/httpdocs/bin/console on line 38
./bin/build-storefront.sh: line 10: npm: command not found
./bin/build-storefront.sh: line 11: node: command not found
./bin/build-storefront.sh: line 12: npm: command not found
PHP Warning: Unsupported declare 'strict_types' in /var/www/vhosts/shopurl/httpdocs/bin/console on line 2
PHP Parse error: syntax error, unexpected '?' in /var/www/vhosts/shopurl/httpdocs/bin/console on line 38
PHP Warning: Unsupported declare 'strict_types' in /var/www/vhosts/shopurl/httpdocs/bin/console on line 2
PHP Parse error: syntax error, unexpected '?' in /var/www/vhosts/shopurl/httpdocs/bin/console on line 38

```

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [27. September 2022 um 22:51 UTC](https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413/4 "2022-09-27T22:51:38Z")

</div>

Welche PHP Version ist bei dir in Verwendung?

Und auf dem System fehlt der Paketmanager npm.

---

<div class="post-metadata">

**Author:** ![chamaw](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@chamaw](https://forum.shopware.com/u/chamaw)\
**Post date:** [28. September 2022 um 13:44 UTC](https://forum.shopware.com/t/build-storefront-wird-nicht-erstellt-gibt-nichts-aus/96413/5 "2022-09-28T13:44:21Z")

</div>

das ist ein Shell-Script und kein PHP Script ! Sprich das läuft direkt nur auf \*nix oder Mac OS. Auf Windows sicher nur im Docker. Im Docker ist npm installiert.

Frage wäre erstmal auf welcher Umgebung Du entwickelst ? Danach kann man dann sicher weiterhelfen.

herzlichst

CH
