Composer Allowed memory size exhausted 内存不足

composer 安装的时候提示内存不足

执行的命令:

composer require spatie/laravel-permission

报错

Updating dependencies (including require-dev)

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 84

临时解决方案, 可以在命令行前面添加参数, 临时解除内存限制

COMPOSER_MEMORY_LIMIT=-1 composer require spatie/laravel-permission

 

Add a Comment

您的电子邮箱地址不会被公开。 必填项已用*标注