脚本php artisan清除编译处理返回的pre-update-cmd事件(Laravel 4.1升级)

前端之家收集整理的这篇文章主要介绍了脚本php artisan清除编译处理返回的pre-update-cmd事件(Laravel 4.1升级)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近尝试从Laravel 4.0升级到Laravel 4.1,并且在运行PHP composer.phar更新时收到以下错误
  1. Script PHP artisan clear-compiled handling the pre-update-cmd event returned with an error
  2.  
  3.  
  4.  
  5. [RuntimeException]
  6. Error Output:
  7.  
  8.  
  9.  
  10. update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]

我只要求:

  1. "require": {
  2. "laravel/framework": "4.1.*","way/generators": "2.*","madewithlove/laravel-oauth2": "0.4.*"
  3. },

此外,我收到这个错误之前(即使我在我的环境中运行PHP 5.4.10):

  1. PHPseclib/PHPseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
  2. PHPseclib/PHPseclib suggests installing pear-pear/PHP_Compat (Install PHP_Compat to get PHPseclib working on PHP < 4.3.3.)
  3. d11wtq/boris suggests installing ext-readline (*)
  4. d11wtq/boris suggests installing ext-pcntl (*)
  5. Writing lock file
  6. Generating autoload files

编辑:

composer.json中使用的脚本:

  1. "scripts": {
  2. "pre-install-cmd": [
  3. "PHP artisan clear-compiled"
  4. ],"post-install-cmd": [
  5. "PHP artisan optimize"
  6. ],"pre-update-cmd": [
  7. "PHP artisan clear-compiled"
  8. ],"post-update-cmd": [
  9. "PHP artisan optimize"
  10. ],"post-create-project-cmd": [
  11. "PHP artisan key:generate"
  12. ]
  13. },
你是否遵循升级程序?运行作曲家更新是不够的. laravel.com/docs/upgrade

猜你在找的Laravel相关文章