# Dev Installation mit ./psh.phar Node.js process out of memory Apple M1

**URL:** <https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407>\
**Category:** Installation / Einstieg\
**Created:** [18. September 2021 um 17:36 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407 "2021-09-18T17:36:05Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [18. September 2021 um 17:36 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/1 "2021-09-18T17:36:06Z")

</div>

Moin in die Runde,

ich versuche mich gerade daran Shopware 6 lokal mit Mamp zu installieren.  
Durch diverse vorhergehende Fehler (memory\_limit php.ini etc.) habe ich mich durchgegoogelt und bin nun aber an einem Punkt wo ich nicht weiterkomme.

47/52 bricht bei mir ab mit folgender Fehlermeldung:  
FATAL ERROR: wasm code commit Allocation failed - process out of memory

Ich habe gelesen, dass Apple M1 mit node 12 Probleme hat. Also Terminal unter Rosetta gestartet … aber dasselbe ☹

Kann mir hier vielleicht jemand helfen?

Als nächsten Schritt würde ich Shopware mit Docker probieren.  
Es wurmt mich aber etwas, dass ich das nicht mit Mamp hinbekomme.  
grüße  
Richard

---

<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:** [18. September 2021 um 20:57 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/2 "2021-09-18T20:57:36Z")

</div>

Achte darauf, dass die Console unter Umständen eine andere PHP-Version nutzt und entsprechend eine andere php.ini nutzt.

php -i | grep „memory\_limit“

---

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [18. September 2021 um 21:03 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/3 "2021-09-18T21:03:56Z")

</div>

Hey hi,  
Die php.ini vom Mamp wird benutzt.  
memory\_limit =\> 512M =\> 512M

---

<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:** [18. September 2021 um 21:12 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/4 "2021-09-18T21:12:37Z")

</div>

Ich würde es zur Sicherheit mal auf 1024M setzen, um die Möglichkeit sicher auszuschließen.

---

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [18. September 2021 um 21:15 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/5 "2021-09-18T21:15:35Z")

</div>

256M sind ja eigentlich nur gefordert. aber ich probier das gleich mal.  
Docker klappt nämlich gerade auch nicht…

---

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [19. September 2021 um 05:49 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/6 "2021-09-19T05:49:25Z")

</div>

Moin,  
also gestern hat das nicht mehr geklappt…also mit frischem Kopf heute morgen weitermachen.  
Klappt nicht.  
php -r ‚phpinfo();‘ | grep ‚php.ini‘  
Configuration File (php.ini) Path =\> /Applications/MAMP/bin/php/php7.4.21/conf

vim /Applications/MAMP/bin/php/php7.4.21/conf/php.ini  
Dort habe ich das memory\_limit auf 1024M gestellt.  
Allerdings zeigt mir php -i | grep memory\_limit  
memory\_limit =\> 512M =\> 512M

./psh.phar install bricht auch immer noch bei 47/52 ab.

---

<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:** [19. September 2021 um 09:09 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/7 "2021-09-19T09:09:14Z")

</div>

Dann nutzt du auf der Konsole ein anderes PHP. Einfach das entsprechende Limit auch dort anpassen.

Shopware benötigt zumindest im Developer Template Bash, .Mac nutzt inzwischen ja zsh. Weiß nicht, ob das für die normale Version auch schon gilt.

---

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [19. September 2021 um 10:28 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/8 "2021-09-19T10:28:25Z")

</div>

hmmm … ich dachte which php zeigt an, welches php benutzt wird.  
Beim Mac wird zsh benutzt, das stimmt. psh.phar scheint dann eine andere Shell zu benutzen.  
Bei einem command not found kommt dort sh command not found.  
Wie finde ich denn raus, welche php.ini für sh innerhalb des psh.phar Skriptes gültig ist?

---

<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:** [19. September 2021 um 10:39 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/9 "2021-09-19T10:39:55Z")

</div>

Ja, macht es.

Hast du das Terminal beendet und neu gestartet, nachdem du die php.ini geändert hast?

---

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [19. September 2021 um 10:41 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/10 "2021-09-19T10:41:06Z")

</div>

ja habe ich gemacht…

benutzt sh (bash?) vielleicht eine andere php.ini?

muss jetzt mit meinem lütten zum Spielplatz … ich mache heute nachmittag weiter.

---

<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:** [19. September 2021 um 10:55 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/11 "2021-09-19T10:55:42Z")

</div>

Wenn dir php -i | grep memory\_limit ein anderes memory\_limit anzeigt, als du in der php.ini eingestellt hast, jedoch which auf die richtige PHP-Version zeigt… dann stimmt echt etwas nicht. Eventuell dem Mac komplett neu starten, damit PHP, Terminal, etc. sicher die neue Konfigurationen laden.

Irgendwo in der Shopware Dokumentation habe ich gelesen, dass sh. unter Bash ausgeführt werden müssen. Nachdem ich von zsh zu bash zurück gewechselt bin, haben sich meine Probleme damals auch gelöst.

---

<div class="post-metadata">

**Author:** ![hanuman](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanuman](https://forum.shopware.com/u/hanuman)\
**Post date:** [28. September 2021 um 11:16 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/12 "2021-09-28T11:16:00Z")

</div>

Hey Max\_Shop,

mann mann mann … die Tage vergehen. Kinder, Arbeit und der ganze Rest haben mich nicht mehr an das Projekt Shopware 6 auf meinem MacBook gelassen.  
Jetzt aber:

So. Ich habe es jetzt geschafft und Shopware 6 lokal auf meinem M1 Mac zu installieren 🙂  
Ich habe Mama nun deinstalliert und mir mit homebrew Apache mit Php und Mysql installiert.  
Wichtig war ausserdem node@12 zu deinstallieren und node latest zu installieren.  
Als memory\_limit habe ich 1024M eingestellt.  
bin\_setup hat zwar bei npm wegen alter Lockfiles gemeckert … aber nun läuft es.

Danke für Deine Hilfe!

---

<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. September 2021 um 11:17 UTC](https://forum.shopware.com/t/dev-installation-mit-psh-phar-node-js-process-out-of-memory-apple-m1/90407/13 "2021-09-29T11:17:01Z")

</div>

Freut mich… ich habe meine Probleme mit MAMP auch gelöst, nutze es aber noch 😉
