# Shopware 6 Develeopment Docker Image Installation

**URL:** <https://forum.shopware.com/t/shopware-6-develeopment-docker-image-installation/97797>\
**Category:** Shopware 6 (German)\
**Created:** [29. Dezember 2022 um 14:27 UTC](https://forum.shopware.com/t/shopware-6-develeopment-docker-image-installation/97797 "2022-12-29T14:27:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrispy](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@chrispy](https://forum.shopware.com/u/chrispy)\
**Post date:** [29. Dezember 2022 um 14:27 UTC](https://forum.shopware.com/t/shopware-6-develeopment-docker-image-installation/97797/1 "2022-12-29T14:27:50Z")

</div>

Hi,

ich versuche seit Tagen vergeblich eine funktionierende Shopware 6.3.5.4 Instanz für die Enticklung eines eigenen Themes aufzusetzen.

Probiert habe ich bisher dockware und Installation gemäß: [Docker - Shopware Developer](https://developer.shopware.com/docs/guides/installation/docker)

Dockware hatte auch funktioniert, jedoch haben die Watcher für die storefront nicht so funktioniert wie sie sollten, sodass ein hot reload nicht möglich war.

Bei der Installation per „./psh.phar docker:start“ erhalte ich folgenden Fehler (für image: shopware/development:6.3.5.4):

```auto
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
npm WARN notsup Unsupported engine for npm@9.2.0: wanted: {"node":"^14.17.0 || ^16.13.0 || >=18.0.0"} (current: {"node":"12.22.12","npm":"6.14.16"})
npm WARN notsup Not compatible with your version of node/npm: npm@9.2.0

+ npm@9.2.0
added 94 packages from 28 contributors, removed 300 packages and updated 137 packages in 5.651s
ERROR: npm v9.2.0 is known not to run on Node.js v12.22.12. You'll need to
upgrade to a newer Node.js version in order to use this version of npm. This
version of npm supports the following node versions: `^14.17.0 || ^16.13.0 ||
>=18.0.0`. You can find the latest version at https://nodejs.org/.

ERROR:
/usr/lib/node_modules/npm/lib/utils/exit-handler.js:22
  const hasLoadedNpm = npm?.config.loaded
                           ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at module.exports (/usr/lib/node_modules/npm/lib/cli.js:76:23)
    at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:2:25)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
The command '/bin/sh -c sed -ri -e 's!VirtualHost \*:80!VirtualHost \*:8000!g' /opt/docker/etc/httpd/vhost.conf && echo "Listen 8000" | tee -a /etc/apache2/ports.conf && curl -sL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && sh -c 'echo "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" >> /etc/apt/sources.list.d/docker.list' && mkdir -p /usr/share/man/man1 && curl -sL https://deb.nodesource.com/setup_12.x | bash && mkdir -p ${NPM_CONFIG_CACHE} && apt-install default-mysql-client nodejs google-chrome-stable libicu-dev graphviz vim gnupg2 docker-ce=5:18.09.7~3-0~debian-stretch libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb && npm i npm -g && npm i forever -g && chown -R ${USER_ID}:${GROUP_ID} ${NPM_CONFIG_CACHE} && ln -s /app/psh.phar /bin/psh && pecl install pcov-1.0.6 && docker-php-ext-enable pcov' returned a non-zero code: 1
ERROR: Service 'app_server' failed to build : Build failed

```

Die nodejs Version auf dem Host ist \> 18.

Kennt jemand die Ursache?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [29. Dezember 2022 um 14:35 UTC](https://forum.shopware.com/t/shopware-6-develeopment-docker-image-installation/97797/2 "2022-12-29T14:35:06Z")

</div>

Die Fehlermeldung sagt aber aus, dass du npm@9.2.0 hast. Kann mir nicht vorstellen, dass sich node das einfach ausdenkt. Würde an den Punkt noch einmal prüfen.

---

<div class="post-metadata">

**Author:** ![chrispy](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@chrispy](https://forum.shopware.com/u/chrispy)\
**Post date:** [29. Dezember 2022 um 14:45 UTC](https://forum.shopware.com/t/shopware-6-develeopment-docker-image-installation/97797/3 "2022-12-29T14:45:05Z")

</div>

```auto
$ node -v
v18.12.1

```

```auto
$ npm version
{
  npm: '8.19.2',
  node: '18.12.1',
  v8: '10.2.154.15-node.12',
  uv: '1.43.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '108',
  nghttp2: '1.47.0',
  napi: '8',
  llhttp: '6.0.10',
  openssl: '3.0.7+quic',
  cldr: '41.0',
  icu: '71.1',
  tz: '2022b',
  unicode: '14.0',
  ngtcp2: '0.8.1',
  nghttp3: '0.7.0'
}

```
