Laravel 4.2 artisan CLI 在 composer 更新后不再工作

Laravel 4.2 artisan CLI does not work anymore after composer update

我只是 运行 "composer update" 在我的生产服务器上,收到这个错误:

Script php artisan clear-compiled handling the post-update-cmd event returned with an error

当我尝试任何 "php artisan" 命令时,我没有收到任何结果。

我已经尝试删除我的 composer.lock 文件和供应商文件夹,并再次 运行 "composer install",但没有结果。

这是我的 composer.json 文件:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*",
"bllim/laravalid": "dev-laravel4",
"facebook/php-sdk-v4" : "~5.0" 

},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/composers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}

我的生产服务器运行 PHP 5.6 和 Apache 2.4。

我通过以下步骤解决了这个问题:

  1. 删除供应商文件夹和 composer.lock
  2. 将 composer.jason 更改为默认值
  3. 运行作曲家安装
  4. 运行作曲家更新
  5. 在 blim 验证文件夹中 "converter" 到 "Converter"
  6. 运行作曲家再次更新