在作曲家更新后,Laravel 4.2工匠CLI不再起作用

时间:2015-09-22 13:58:36

标签: php laravel laravel-4 composer-php artisan

我刚跑了#34;作曲家更新"在我的生产服务器上,并收到此错误:

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 个答案:

答案 0 :(得分:2)

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

  1. 删除供应商文件夹和composer.lock
  2. 将composer.jason更改为默认
  3. 运行composer install
  4. 运行composer update
  5. 在bllim验证文件夹“converter”中转换为“Converter”
  6. 再次运行composer update