我最近尝试从Laravel 4.0升级到Laravel 4.1,并且在运行PHP composer.phar更新时收到以下错误:
- Script PHP artisan clear-compiled handling the pre-update-cmd event returned with an error
- [RuntimeException]
- Error Output:
- 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]
我只要求:
- "require": {
- "laravel/framework": "4.1.*","way/generators": "2.*","madewithlove/laravel-oauth2": "0.4.*"
- },
此外,我收到这个错误之前(即使我在我的环境中运行PHP 5.4.10):
- PHPseclib/PHPseclib suggests installing ext-gmp (Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.)
- PHPseclib/PHPseclib suggests installing pear-pear/PHP_Compat (Install PHP_Compat to get PHPseclib working on PHP < 4.3.3.)
- d11wtq/boris suggests installing ext-readline (*)
- d11wtq/boris suggests installing ext-pcntl (*)
- Writing lock file
- Generating autoload files
编辑:
composer.json中使用的脚本:
你是否遵循升级程序?运行作曲家更新是不够的.
laravel.com/docs/upgrade