2017-03-03 81 views
0

捉迷藏時我laravel項目composer install我得到的錯誤:工匠明確編譯返回錯誤代碼255

Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255

上可能是什麼問題,有什麼建議?注意作曲家安裝所有供應商軟件包。完整的輸出低於:

[[email protected]_path]$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> php artisan clear-compiled
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 255

回答

0

該命令所做的唯一的事情就是刪除bootstrap/cache/services.php文件,如果存在的話。該文件很可能存在,但權限設置不正確,無法刪除它。

3

Makse確定您的storage/ & bootstrap/cache目錄是可寫的。

確保您的.env文件doesent包含任何空格。

例: key=value istead of key=va lue

刪除 bootstrap/cache/config.php文件。 然後

composer dumpautoload 
composer update 

嘗試刪除/bootstrap/compiled.php(如果有的話)

+0

那不是爲我工作。 :d –