在安装Laravel/ui 3.0 包时候报异常 Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar memory-limit-errors for more info on how to handle out of memory errors.
在安装Laravel/ui 3.0 包时候报异常
msi@pozee MINGW64 /d/phpstudy/WWW/laravel-demo (master)
$ composer require laravel/ui:"^3.0"
Warning from https://mirrors.aliyun.com/composer: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
./composer.json has been updated
Loading composer repositories with package information
Warning from https://mirrors.aliyun.com/composer: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/composer/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
去php的配置文件php.ini中找到memory_limit配置,把配置改为memory_limit=-1,重启php服务器
https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors
memory_limit
参数设置允许脚本分配的最大内存量(以字节为单位)
这有助于防止编写不良的脚本占用服务器上的所有可用内存
请注意,没有内存限制,请将此伪指令设置为-1。
转载注明:
感谢博主,喝杯咖啡~
感谢博主,喝杯咖啡~
还没有人发表评论