• <legend id='tWBP4'><style id='tWBP4'><dir id='tWBP4'><q id='tWBP4'></q></dir></style></legend>

    1. <tfoot id='tWBP4'></tfoot>

        <small id='tWBP4'></small><noframes id='tWBP4'>

          <bdo id='tWBP4'></bdo><ul id='tWBP4'></ul>
        <i id='tWBP4'><tr id='tWBP4'><dt id='tWBP4'><q id='tWBP4'><span id='tWBP4'><b id='tWBP4'><form id='tWBP4'><ins id='tWBP4'></ins><ul id='tWBP4'></ul><sub id='tWBP4'></sub></form><legend id='tWBP4'></legend><bdo id='tWBP4'><pre id='tWBP4'><center id='tWBP4'></center></pre></bdo></b><th id='tWBP4'></th></span></q></dt></tr></i><div id='tWBP4'><tfoot id='tWBP4'></tfoot><dl id='tWBP4'><fieldset id='tWBP4'></fieldset></dl></div>

      1. PHP Composer 更新“无法分配内存"错误(使用 Laravel 4)

        时间:2023-10-31

            <tbody id='FAxIY'></tbody>
        • <tfoot id='FAxIY'></tfoot>

        • <small id='FAxIY'></small><noframes id='FAxIY'>

          <legend id='FAxIY'><style id='FAxIY'><dir id='FAxIY'><q id='FAxIY'></q></dir></style></legend>

              <bdo id='FAxIY'></bdo><ul id='FAxIY'></ul>
                  <i id='FAxIY'><tr id='FAxIY'><dt id='FAxIY'><q id='FAxIY'><span id='FAxIY'><b id='FAxIY'><form id='FAxIY'><ins id='FAxIY'></ins><ul id='FAxIY'></ul><sub id='FAxIY'></sub></form><legend id='FAxIY'></legend><bdo id='FAxIY'><pre id='FAxIY'><center id='FAxIY'></center></pre></bdo></b><th id='FAxIY'></th></span></q></dt></tr></i><div id='FAxIY'><tfoot id='FAxIY'></tfoot><dl id='FAxIY'><fieldset id='FAxIY'></fieldset></dl></div>
                1. 本文介绍了PHP Composer 更新“无法分配内存"错误(使用 Laravel 4)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我就是解决不了这个问题.

                  I just can't solve this one.

                  我正在使用 Linode 1G RAM 基本计划.试图通过 Composer 安装一个包,它不让我.我的内存限制在 PHP.ini 上设置为-1"

                  I'm on Linode 1G RAM basic plan. Trying to install a package via Composer and it's not letting me. My memory limit is set to "-1" on PHP.ini

                  我还能做些什么来安装它吗?

                  Is there anything else I can do to get this installed?

                  Loading composer repositories with package information
                  Updating dependencies (including require-dev)
                    - Installing thujohn/rss (dev-master df80a7d)
                      Downloading: 100%         
                  PHP Fatal error:  Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:975
                  Stack trace:
                  #0 [internal function]: ComposerUtilErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 975, Array)
                  #1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(975): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
                  #2 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(853): SymfonyComponentConsoleApplication->getSttyColumns()
                  #3 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(818): SymfonyComponentConsoleApplication->getTerminalDimensions()
                  #4 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(752): SymfonyComponentConsoleApplication->getTerminalWidth()
                  #5 phar:///usr/local/bin/com in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 975
                  
                  Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:975
                  Stack trace:
                  #0 [internal function]: ComposerUtilErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 975, Array)
                  #1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(975): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
                  #2 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(853): SymfonyComponentConsoleApplication->getSttyColumns()
                  #3 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(818): SymfonyComponentConsoleApplication->getTerminalDimensions()
                  #4 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(752): SymfonyComponentConsoleApplication->getTerminalWidth()
                  #5 phar:///usr/local/bin/com in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 975
                  

                  推荐答案

                  有点老了,但以防万一新人正在寻找解决方案,更新您的 PHP 版本可以解决问题.

                  A bit old but just in case someone new is looking for a solution, updating your PHP version can fix the issue.

                  您还应该提交您的 composer.lock 文件并在资源密集型较少的生产环境中安装 composer.

                  Also you should be committing your composer.lock file and doing a composer install on a production environment which is less resource intensive.

                  更多细节在这里:https://github.com/composer/composer/issues/1898#issuecomment-23453850

                  这篇关于PHP Composer 更新“无法分配内存"错误(使用 Laravel 4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:ajax请求中的laravel TokenMismatchException 下一篇:资源控制器的 Laravel 命名路由

                  相关文章

                    1. <tfoot id='0hEgd'></tfoot>
                      <i id='0hEgd'><tr id='0hEgd'><dt id='0hEgd'><q id='0hEgd'><span id='0hEgd'><b id='0hEgd'><form id='0hEgd'><ins id='0hEgd'></ins><ul id='0hEgd'></ul><sub id='0hEgd'></sub></form><legend id='0hEgd'></legend><bdo id='0hEgd'><pre id='0hEgd'><center id='0hEgd'></center></pre></bdo></b><th id='0hEgd'></th></span></q></dt></tr></i><div id='0hEgd'><tfoot id='0hEgd'></tfoot><dl id='0hEgd'><fieldset id='0hEgd'></fieldset></dl></div>
                      • <bdo id='0hEgd'></bdo><ul id='0hEgd'></ul>
                      <legend id='0hEgd'><style id='0hEgd'><dir id='0hEgd'><q id='0hEgd'></q></dir></style></legend>

                      <small id='0hEgd'></small><noframes id='0hEgd'>