Laravel Composer Install始终返回错误

时间:2014-10-05 17:27:17

标签: php laravel laravel-4 composer-php

我正在尝试安装Laravel,但每次都返回相同的错误:

  [ErrorException]            
  Array to string conversion  

optimize [--force] [--psr]

Script php artisan optimize handling the post-install-cmd event returned with an error

  [RuntimeException]              
  Error Output:                   

    [ErrorException]              
    Array to string conversion

optimize [--force] [--psr]  

我的步骤:

  • 无论使用root - sudo -s还是Laravel Forge的默认帐户Forge,都会出现此错误
  • 我还chmod -R 777 app/storage以防止任何权限错误
  • 然后使用以下sudo composer installsudo composer update,错误仍然存​​在:

Writing lock file Generating autoload files Generating optimized class loader Compiling common classes [ErrorException] Array to string conversion optimize [--force] [--psr]

为什么我收到此错误?!任何帮助都将非常感激。

0 个答案:

没有答案