<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Npm on besserentwickeln.de</title><link>https://besserentwickeln.de/tags/npm/</link><description>Recent content in Npm on besserentwickeln.de</description><generator>Hugo -- gohugo.io</generator><language>de</language><copyright>Philipp Tuchardt</copyright><lastBuildDate>Tue, 29 Nov 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://besserentwickeln.de/tags/npm/index.xml" rel="self" type="application/rss+xml"/><item><title>M1 DDEV Chromium</title><link>https://besserentwickeln.de/p/m1-ddev-chromium/</link><pubDate>Tue, 29 Nov 2022 00:00:00 +0000</pubDate><guid>https://besserentwickeln.de/p/m1-ddev-chromium/</guid><description>&lt;p>Einer meiner Kollegen bekam auf seinem M1-Macbook beim Ausführen von &lt;code>bin/build-storefront.sh&lt;/code> folgenden Fehler.&lt;/p>
&lt;h2 id="fehlermeldung">Fehlermeldung
&lt;/h2>&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt"> 1
&lt;/span>&lt;span class="lnt"> 2
&lt;/span>&lt;span class="lnt"> 3
&lt;/span>&lt;span class="lnt"> 4
&lt;/span>&lt;span class="lnt"> 5
&lt;/span>&lt;span class="lnt"> 6
&lt;/span>&lt;span class="lnt"> 7
&lt;/span>&lt;span class="lnt"> 8
&lt;/span>&lt;span class="lnt"> 9
&lt;/span>&lt;span class="lnt">10
&lt;/span>&lt;span class="lnt">11
&lt;/span>&lt;span class="lnt">12
&lt;/span>&lt;span class="lnt">13
&lt;/span>&lt;span class="lnt">14
&lt;/span>&lt;span class="lnt">15
&lt;/span>&lt;span class="lnt">16
&lt;/span>&lt;span class="lnt">17
&lt;/span>&lt;span class="lnt">18
&lt;/span>&lt;span class="lnt">19
&lt;/span>&lt;span class="lnt">20
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even &lt;span class="k">if&lt;/span> nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! code &lt;span class="m">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! path /var/www/html/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! &lt;span class="nb">command&lt;/span> failed
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! &lt;span class="nb">command&lt;/span> sh /tmp/install-9c2094bf.sh
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! The chromium binary is not available &lt;span class="k">for&lt;/span> arm64.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! If you are on Ubuntu, you can install with:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR!
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! sudo apt install chromium
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR!
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR!
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! sudo apt install chromium-browser
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR!
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! /var/www/html/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! throw new Error&lt;span class="o">()&lt;/span>&lt;span class="p">;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! ^
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR!
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! Error
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! at /var/www/html/vendor/shopware/storefront/Resources/app/storefront/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115:27
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm ERR! at FSReqCallback.oncomplete &lt;span class="o">(&lt;/span>node:fs:206:21&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>Als Workaround haben wir &lt;code>--ignore-scripts --legacy-peer-deps&lt;/code> zu jedem &lt;code>npm install&lt;/code> bzw. &lt;code>npm clean-install&lt;/code> in der &lt;code>build-storefront.sh&lt;/code> hinzugefügt.&lt;/p></description></item></channel></rss>