M1 DDEV Chromium

Schnelle Lösung für einen Kollegen, der auf seinem M1-Macbook beim Ausführen von `bin/build-storefront.sh` einen Fehler bekam.

Einer meiner Kollegen bekam auf seinem M1-Macbook beim Ausführen von bin/build-storefront.sh folgenden Fehler.

Fehlermeldung

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /var/www/html/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh /tmp/install-9c2094bf.sh
npm ERR! The chromium binary is not available for arm64.
npm ERR! If you are on Ubuntu, you can install with: 
npm ERR! 
npm ERR!  sudo apt install chromium
npm ERR! 
npm ERR! 
npm ERR!  sudo apt install chromium-browser
npm ERR! 
npm ERR! /var/www/html/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
npm ERR!                     throw new Error();
npm ERR!                     ^
npm ERR! 
npm ERR! Error
npm ERR!     at /var/www/html/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
npm ERR!     at FSReqCallback.oncomplete (node:fs:206:21)

Als Workaround haben wir --ignore-scripts --legacy-peer-deps zu jedem npm install bzw. npm clean-install in der build-storefront.sh hinzugefügt.

Erstellt mit Hugo
Theme Stack gestaltet von Jimmy