Symfony:作曲家内存不足

时间:2018-10-02 14:01:20

标签: php symfony composer-php

所以我在Windows上使用symfony 2.8(Wamp 2.5,PHP 5.5.12) 我正在尝试安装FOSUserBundle 总是存在此错误:

    cd myproject
    composer require friendsofsymfony/user-bundle "~2.0"
    ./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocat
e 16 bytes) in phar://C:/composer/composer.phar/src/Composer/DependencyResolver/
RuleWatchGraph.php on line 52

Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-error
s for more info on how to handle out of memory errors.

我尝试了很多解决方案,但没有一个对我有用

php -d memory_limit=-1../composer/composer.phar update
php -d memory_limit=-1 ../composer/composer.phar install

php -dmemory_limit=1G ../composer/composer.phar update --prefer-dist --no-dev 
php -d memory_limit=-1 ../composer/composer.phar require friendsofsymfony/user-bundle "~2.0@dev
 php composer.phar self-update .......................................

我可以使用此命令composer require friendsofsymfony/user-bundle "~2.0"安装FSOUSerBandle的唯一方法是在symfony项目之外运行它,因此它创建了一个vendor/friendsofsymfony/user-bundle文件夹

当我尝试在我的项目中复制该文件夹并创建新的捆绑包时,出现此错误

 Class 'Symfony\Component\Console\Input\ArgvInput' not found in C:\p

任何人都可以帮助我!我已经在寻找解决方案已有4个小时了

0 个答案:

没有答案