Problems installing Mautic 5 on fresh VPS

Hi there,
very exited to switch to Mautic i rented a vps, installed an ubuntu image and now i have problems installing mautic.

abter a lot of steps i was able to run a “php8.1 /usr/bin/composer install”

It leads to an error:

757 verbose stack Error: command failed
757 verbose stack     at ChildProcess.<anonymous> (/usr/share/nodejs/@npmcli/promise-spawn/index.js:64:27)
757 verbose stack     at ChildProcess.emit (events.js:314:20)
757 verbose stack     at maybeClose (internal/child_process.js:1022:16)
757 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
758 verbose pkgid mautic@0.0.0
759 verbose cwd /var/www/mautic
760 verbose Linux 5.15.0-91-generic
761 verbose argv "/usr/bin/node" "/usr/bin/npm" "ci" "--prefer-offline" "--no-audit"
762 verbose node v12.22.9
763 verbose npm  v8.5.1
764 error code 137
765 error path /var/www/mautic
766 error command failed
767 error command sh -c node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build
768 verbose exit 137
769 timing npm Completed in 351983ms
770 verbose code 137
771 error A complete log of this run can be found in:
771 error     /root/.npm/_logs/2024-01-10T09_00_57_324Z-debug-0.log

I am really new in composer - can someone help me?

By a quick Google search it looks like the code 137 is caused by hitting the memory limit. One of the first Google links:

1 Like