使用composer require encore/laravel-admin 报错
$ composer require encore/laravel-admin
Using version ^1.6 for encore/laravel-admin
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
VirtualAlloc() failed: [0x00000008] ▒洢▒▒▒㣬▒▒▒▒▒▒▒▒▒▒
VirtualFree() failed: [0x000001e7] ▒▒ͼ▒▒▒▒▒▒Ч▒ĵ▒ַ▒▒
VirtualAlloc() failed: [0x00000008] ▒洢▒▒▒㣬▒▒▒▒▒▒▒▒▒▒
VirtualFree() failed: [0x000001e7] ▒▒ͼ▒▒▒▒▒▒Ч▒ĵ▒ַ▒▒
PHP Fatal error: Out of memory (allocated 511705088) (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220
Fatal error: Out of memory (allocated 511705088) (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 220
安装laravel-admin时报内存不足错误,尝试以下解决方法无效:
1、增加PHP内存限制;
2、解除php内存限制(无限制);
3、更新composer;
4、使用$ php -d memory_limit=-1 "C:ProgramDataComposerSetupbincomposer.phar" require encore/laravel-admin
参考链接:
https://stackoverflow.com/que...
https://ourcodeworld.com/arti...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用free -h ,确定下内存够不够
怕不是服务器内存不够用吧