Disabling xdebug when running composer

前端 未结 18 1382
北海茫月
北海茫月 2021-01-29 21:18

When running composer diagnose, I get the following error :

The xdebug extension is loaded, this can slow down Composer a little. Disablin

18条回答
  •  青春惊慌失措
    2021-01-29 21:43

    Creating an alias for composer to disable xdebug and prevent memory errors:

    Add this line to your ~/.bash_profile

    alias composer='php -d xdebug.profiler_enable=0 -d memory_limit=-1 /usr/local/bin/composer'
    

    Restart the terminal to make the new alias available.

提交回复
热议问题