工匠明确编译的返回错误代码255 [英] artisan clear-compiled return error code 255
问题描述
在laravel项目中运行composer install
时,出现错误:
When runnning composer install
on my laravel project I get the error:
脚本php artisan进行了明确编译,处理了返回错误代码为255的post-install-cmd事件
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255
关于可能是什么问题的任何建议?注意composer将安装所有供应商软件包.完整的输出如下:
Any advice on what could be the issue? Note composer installs all the vendor packages. The full output is below:
[user @ some_path] $作曲家更新
使用包信息加载composer存储库
更新依赖关系(包括require-dev)
无需安装或更新
生成自动加载文件
> php artisan明确编译
脚本php artisan进行了明确编译,处理返回的错误代码为255的post-update-cmd事件
[user@some_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
推荐答案
确保您的storage/ & bootstrap/cache
目录可写.
确保您的.env文件不包含任何空格.
Make sure your .env file doesent contain any spaces.
例如:
key=value istead of key=va lue
删除
bootstrap/cache/config.php
文件.
然后
composer dumpautoload
composer update
尝试删除/bootstrap/compiled.php
(如果有的话)
Try to remove /bootstrap/compiled.php
( if you have it )
这篇关于工匠明确编译的返回错误代码255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!