LoginSignup
9
10

More than 3 years have passed since last update.

composer 実行時に Allowed memory size エラーで困ったとき

Posted at

composer update を実行したら、いきなり怒られるようになりました。

# composer update

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777216 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220

そんな時は、実行時のメモリ制限を切って対応しましょう。

php -d memory_limit=-1 /usr/local/bin/composer update

composerコマンドの配備先については、各環境で合わせて下さい。

9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10