skip to Main Content

I am trying to use the command php artisan pull or push which gives me the following error:

zsh: illegal hardware instruction php artisan cms:pull

I also tried to run Composer update in my Laravel project and get the following error:

post-autoload-dump: IlluminateFoundationComposerScripts::postAutoloadDump post-autoload-dump: @php artisan package:discover



Executing command (CWD): '/usr/local/Cellar/php/7.4.2/bin/php' -d allow_url_fopen='1' -d disable_functions='' -d memory_limit='1536M' artisan package:discover

[SymfonyComponentProcessExceptionRuntimeException] The process has been signaled with signal "4".

Exception trace: () at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/vendor/symfony/process/Process.php:366 SymfonyComponentProcessProcess->wait() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/vendor/symfony/process/Process.php:198 SymfonyComponentProcessProcess->run() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/Util/ProcessExecutor.php:75 ComposerUtilProcessExecutor->execute() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:257 ComposerEventDispatcherEventDispatcher->doDispatch() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:96 ComposerEventDispatcherEventDispatcher->dispatchScript() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/Autoload/AutoloadGenerator.php:313 ComposerAutoloadAutoloadGenerator->dump() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/Installer.php:304 ComposerInstaller->run() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/Command/UpdateCommand.php:163 ComposerCommandUpdateCommand->execute() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/vendor/symfony/console/Command/Command.php:245 SymfonyComponentConsoleCommandCommand->run() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/vendor/symfony/console/Application.php:835 SymfonyComponentConsoleApplication->doRunCommand() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/vendor/symfony/console/Application.php:185 SymfonyComponentConsoleApplication->doRun() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/Console/Application.php:267 ComposerConsoleApplication->doRun() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/vendor/symfony/console/Application.php:117 SymfonyComponentConsoleApplication->run() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/src/Composer/Console/Application.php:106 ComposerConsoleApplication->run() at phar:///usr/local/Cellar/composer/1.9.3/bin/composer/bin/composer:61 require() at /usr/local/Cellar/composer/1.9.3/bin/composer:24

I already changed my memory_limit through the following tutorial.

https://www.remcotolsma.nl/2015/01/homebrew-php-memory-limit-verhogen-voor-composer/

I didn’t make any difference

Im using a Macbook Pro with MacOS Catalina version 10.15.3 and 16 GB ram

2

Answers


  1. Chosen as BEST ANSWER

    I couldn't get rid of this problem so I made a backup with all files from my macbook. I erased my harddrive and did a clean macos install. After reinstalling everything (homebrew, mysql, php, vagrant etc.) I opened my project tried the commands above and everything worked fine.


  2. Reinstalling composer and restarting my pc fixed the issue!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search