# bin/watch-storefront.sh wirft Fehler

**URL:** https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944
**Category:** Installation/Einstieg
**Created:** [23. Februar 2020 um 14:38 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944 "2020-02-23T14:38:16Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [23. Februar 2020 um 14:38 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/1 "2020-02-23T14:38:16Z")

</div>

Habe Shopware mit env=dev erfolgreich installiert.

alle bin Befehle arbeiten fehlerfrei bis auf&nbsp;

bin/watch-stofrefront.sh

Fehler:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/f/f34136e50943850eda81578ec0fd81a1cdcf4f60.png)

Kann hier jeamd weiterhelfen.

---

<div class="post-metadata">

### Author: ![np\_burgdigital](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@np\_burgdigital](https://forum.shopware.com/u/np_burgdigital)
#### Post date: [2. März 2020 um 16:05 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/2 "2020-03-02T16:05:48Z")

</div>

hast du dies zuerst ausgeführt?

cd \html\vendor\shopware\storefront\Resources\app\storefront  
npm install

&nbsp;

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 16:40 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/3 "2020-03-02T16:40:35Z")

</div>

> &nbsp;
> 
> &nbsp;
> 
> [@np\_burgdigital schrieb:](https://forum.shopware.com/profile/34305/np_burgdigital "np\_burgdigital")
> 
> hast du dies zuerst ausgeführt?
> 
> cd \html\vendor\shopware\storefront\Resources\app\storefront  
> npm install
> 
> Wie soll ich darauf kommen?
> 
> Habe ich nzn gemacht&nbsp; Fehler ist der gleiche.
> 
> &nbsp;
> 
> Welche npm Version wir benötigt?

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 16:45 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/4 "2020-03-02T16:45:56Z")

</div>

0 info it worked if it ends with ok  
1 verbose cli [ ‚/home/www-data/.nvm/versions/node/v11.15.0/bin/node‘,  
1 verbose cli &nbsp; ‚/home/www-data/.nvm/versions/node/v11.15.0/bin/npm‘,  
1 verbose cli &nbsp; ‚–prefix‘,  
1 verbose cli &nbsp; ‚vendor/shopware/storefront/Resources/app/storefront/‘,  
1 verbose cli &nbsp; ‚run-script‘,  
1 verbose cli &nbsp; ‚hot-proxy‘ ]  
2 info using npm@6.7.0  
3 info using node@v11.15.0  
4 verbose run-script [‚prehot-proxy‘, ‚hot-proxy‘, ‚posthot-proxy‘]  
5 info lifecycle sw-next-storefront@6.1.3~prehot-proxy: sw-next-storefront@6.1.3  
6 info lifecycle sw-next-storefront@6.1.3~hot-proxy: sw-next-storefront@6.1.3  
7 verbose lifecycle sw-next-storefront@6.1.3~hot-proxy: unsafe-perm in lifecycle true  
8 verbose lifecycle sw-next-storefront@6.1.3~hot-proxy: PATH: /home/www-data/.nvm/versions/node/v11.15.0/lib/node\_modules/npm/node\_modules/npm-lifecycle/node-gyp-bin:/home/www-data/hosts/platzhirsch2020/shopware6-prod/vendor/shopware/storefront/Resources/app/storefront/node\_modules/.bin:/home/www-data/bin:/home/www-data/.local/bin:/home/www-data/.nvm/versions/node/v11.15.0/bin:/home/www-data/.rvm/gems/ruby-2.2.6/bin:/home/www-data/.rvm/gems/ruby-2.2.6@global/bin:/usr/share/rvm/rubies/ruby-2.2.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/share/rvm/bin  
9 verbose lifecycle sw-next-storefront@6.1.3~hot-proxy: CWD: /home/www-data/hosts/platzhirsch2020/shopware6-prod/vendor/shopware/storefront/Resources/app/storefront  
10 silly lifecycle sw-next-storefront@6.1.3~hot-proxy: Args: [ ‚-c‘,  
10 silly lifecycle &nbsp; ‚NODE\_ENV=development MODE=hot node ./build/start-hot-reload.js‘ ]  
11 silly lifecycle sw-next-storefront@6.1.3~hot-proxy: Returned: code: 1 &nbsp;signal: null  
12 info lifecycle sw-next-storefront@6.1.3~hot-proxy: Failed to exec hot-proxy script  
13 verbose stack Error: sw-next-storefront@6.1.3 hot-proxy: `NODE_ENV=development MODE=hot node ./build/start-hot-reload.js`  
13 verbose stack Exit status 1  
13 verbose stack &nbsp; &nbsp; at EventEmitter. (/home/www-data/.nvm/versions/node/v11.15.0/lib/node\_modules/npm/node\_modules/npm-lifecycle/index.js:301:16)  
  
13 verbose stack at EventEmitter.emit (events.js:193:13)  
  
13 verbose stack at ChildProcess. (/home/www-data/.nvm/versions/node/v11.15.0/lib/node\_modules/npm/node\_modules/npm-lifecycle/lib/spawn.js:55:14)  
  
13 verbose stack at ChildProcess.emit (events.js:193:13)  
  
13 verbose stack at maybeClose (internal/child\_process.js:999:16)  
  
13 verbose stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:266:5)  
  
14 verbose pkgid sw-next-storefront@6.1.3  
  
15 verbose cwd /home/www-data/hosts/platzhirsch2020/shopware6-prod  
  
16 verbose Linux 5.3.0-40-generic  
  
17 verbose argv „/home/www-data/.nvm/versions/node/v11.15.0/bin/node“ „/home/www-data/.nvm/versions/node/v11.15.0/bin/npm“ „–prefix“ „vendor/shopware/storefront/Resources/app/storefront/“ „run-script“ „hot-proxy“  
  
18 verbose node v11.15.0  
  
19 verbose npm v6.7.0  
  
20 error code ELIFECYCLE  
  
21 error errno 1  
  
22 error sw-next-storefront@6.1.3 hot-proxy: `NODE_ENV=development MODE=hot node ./build/start-hot-reload.js`  
  
22 error Exit status 1  
  
23 error Failed at the sw-next-storefront@6.1.3 hot-proxy script.  
  
23 error This is probably not a problem with npm. There is likely additional logging output above.  
  
24 verbose exit [1, true]  
  
~  
  
~  
  
~

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [2. März 2020 um 16:57 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/5 "2020-03-02T16:57:34Z")

</div>

Klingt wie das hier:&nbsp;[storefront:hot-proxy spawn xdg-open ENOENT · Issue #343 · shopware/platform · GitHub](https://github.com/shopware/platform/issues/343)

Aber lt. Issue schon etwa 1 Monat gefixt. Hast du die aktuelle Version des masters?  
Oder den 6.1 Branch?

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 17:10 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/6 "2020-03-02T17:10:46Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍

Ich habe letzte Woche 6.1.3 per coomposer installiert wie in Ihrer Dokumentation beschrieben.

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 17:12 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/7 "2020-03-02T17:12:06Z")

</div>

ich arbeite nicht auf Docker sonder auf einem nativen Ubuntu 18.04 Server

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [2. März 2020 um 17:12 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/8 "2020-03-02T17:12:44Z")

</div>

Was kommt wenn du

/home/www-data/.nvm/versions/node/v11.15.0/bin/npm&nbsp;--prefix&nbsp;vendor/shopware/storefront/Resources/app/storefront/&nbsp;run-script&nbsp;hot-proxy ausführst?

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 17:14 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/9 "2020-03-02T17:14:56Z")

</div>

Ich arbeite mit dem production Template nicht mit platform.

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [2. März 2020 um 17:19 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/10 "2020-03-02T17:19:18Z")

</div>

Und? Der Command hat damit nichts zutun

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 17:26 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/11 "2020-03-02T17:26:13Z")

</div>

Ich verwende npm 6.7.0

ich habe nun den Port von 9998 auf 80 umgebogen. Jetzt kommt ein anderer Fehler:

&nbsp;

&nbsp;bin/watch-storefront.sh

\> sw-next-storefront@6.1.3 hot-proxy /home/www-data/hosts/platzhirsch2020/shopware6-prod/vendor/shopware/storefront/Resources/app/storefront  
\> NODE\_ENV=development MODE=hot node ./build/start-hot-reload.js

\> No overrides.scss was found. Skipping…

ℹ USING WEBPACK CONFIG FILE: ./build/webpack.hot.config.js

Starting the hot reload server:

Browserslist: caniuse-lite is outdated. Please run next command `npm update`

✔ Shopware 6 Storefront  
&nbsp; Compiled successfully in 8.02s

&nbsp;DONE &nbsp;Compiled successfully in 9269ms &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;17:26:00

platzhirsch-shopware-prod.dev4  
80  
(node:7056) UnhandledPromiseRejectionWarning: TypeError: Assignment to constant variable.  
&nbsp; &nbsp; at createProxyServer (/home/www-data/hosts/platzhirsch2020/shopware6-prod/vendor/shopware/storefront/Resources/app/storefront/build/proxy-server-hot/index.js:50:11)  
&nbsp; &nbsp; at server.then (/home/www-data/hosts/platzhirsch2020/shopware6-prod/vendor/shopware/storefront/Resources/app/storefront/build/start-hot-reload.js:23:5)  
&nbsp; &nbsp; at processTicksAndRejections (internal/process/task\_queues.js:86:5)  
(node:7056) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)  
(node:7056) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [2. März 2020 um 17:42 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/12 "2020-03-02T17:42:29Z")

</div>

Ich habe nun createProxy auskommentiert.

Der watcher läuft nun und rekompiliert auch wenn ich im eigenen Theme Javascript oder SCSS ändere.

Leider wird im Frontend nichts wirksam.

Das war lange Zeit auch im platform Entwicklungssystem so - ist aber dort mittlerweile gefixt.

Was fehlt noch? Jetzt bin ich so nah dran.

---

<div class="post-metadata">

### Author: ![np\_burgdigital](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@np\_burgdigital](https://forum.shopware.com/u/np_burgdigital)
#### Post date: [3. März 2020 um 16:36 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/13 "2020-03-03T16:36:07Z")

</div>

Habe das selbe Problem,  
auch nach Suchen durch den Code bin ich bisher nicht darauf gekommen wie die Verbindung zum Compilieren sein soll.  
Inhalt von watch-storefront.sh

```
#!/bin/bash

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

export PROJECT_ROOT="${PROJECT_ROOT:-"$(dirname $CWD)"}"
export ENV_FILE=${ENV_FILE:-"${PROJECT_ROOT}/.env"}

source ${ENV_FILE}
export APP_URL
export STOREFRONT_PROXY_PORT
export ESLINT_DISABLE

${CWD}/console theme:dump
npm --prefix vendor/shopware/storefront/Resources/app/storefront/ run-script hot-proxy

```

&nbsp;

Habs so probiert, aber auch keine Änderungen im Frontend zu sehen

&nbsp;

```
npm --prefix vendor/shopware/storefront/Resources/app/storefront/ run-script hot

```

&nbsp;

---

<div class="post-metadata">

### Author: ![s\_verweyen](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@s\_verweyen](https://forum.shopware.com/u/s_verweyen)
#### Post date: [5. Mai 2020 um 14:48 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/14 "2020-05-05T14:48:21Z")

</div>

Ich hatte das gleiche Problem. Habe mir jetzt mit ein paar eigenen npm Skripten geholfen

custom/static\_plugins/ThemeName/package.json

```
{
    "devDependencies": {
        "nodemon": "*"
    },
    "scripts": {
        "watch-scss": "./node_modules/nodemon/bin/nodemon.js -e scss -w src/scss/**/* -x '../../../bin/console theme:compile'",
        "watch-js": "./node_modules/nodemon/bin/nodemon.js -e js -w src/main.js -x '../../../bin/build-storefront.sh'",
        "watch-all": "npm run watch-scss & npm run watch-js"
    }
}

```

&nbsp;

---

<div class="post-metadata">

### Author: ![misha90](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@misha90](https://forum.shopware.com/u/misha90)
#### Post date: [19. Mai 2020 um 21:20 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/15 "2020-05-19T21:20:10Z")

</div>

Hab ähnliches Problem mit watch-storefront.sh, ich nutze docker-compose wie im production template, den watcher muss ich aber auf dem Host laufen lassen und die theme-files.json wird mit absoluten Pfaden innerhalb des containers generiert, daher findet dann der watcher auf dem Host die Dateien nicht. Hab irgendwer einen Plan?

---

<div class="post-metadata">

### Author: ![Harris16](https://avatars.discourse-cdn.com/v4/letter/h/9e8a1a/32.png) [@Harris16](https://forum.shopware.com/u/Harris16)
#### Post date: [29. Mai 2020 um 02:56 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/16 "2020-05-29T02:56:02Z")

</div>

Das Ändern des Ports sollte hier helfen. Ich glaube nicht, dass es nach dem Wechsel des Ports Probleme geben würde [mybpcreditcard](https://www.mybpcreditcard.us/)

---

<div class="post-metadata">

### Author: ![oliverriske](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@oliverriske](https://forum.shopware.com/u/oliverriske)
#### Post date: [10. Juni 2020 um 09:18 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/17 "2020-06-10T09:18:03Z")

</div>

6.2.0 geht jetzt problem los

---

<div class="post-metadata">

### Author: ![mn1](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@mn1](https://forum.shopware.com/u/mn1)
#### Post date: [8. September 2021 um 17:29 UTC](https://forum.shopware.com/t/bin-watch-storefront-sh-wirft-fehler/64944/18 "2021-09-08T17:29:02Z")

</div>

Ich habe Shopware 6 version 6.4.4 und immer wieder das gleiche Probleme haben.

Der watcher läuft nun und rekompiliert auch wenn ich im eigenen Theme Javascript oder SCSS ändere.

Leider wird im Frontend nichts wirksam.

kann man mir helfen? danke

 ![Bildschirmfoto 2021-09-08 um 19.30.06](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/1/1c9c3ac211c0c50b5b4df45e812f4d0d16cbd481.png)
