1

Helllo,

When I try to update my project with composer update I receive this error:

> php artisan clear-compiled [Symfony\Component\Debug\Exception\FatalErrorException] parse error Script php artisan clear-compiled handling the pre-update-cmd event returned with an error [RuntimeException] Error Output: 

When I try this:

composer update --no-scripts Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Generating autoload files 

It succeeds?

What could be wrong here?

--EDIT--

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]... 
4
  • what is error output? Commented May 13, 2016 at 8:43
  • [Symfony\Component\Debug\Exception\FatalErrorException] parse error Script php artisan clear-compiled handling the pre-update-cmd event returned with an error [RuntimeException] Error Output: Commented May 13, 2016 at 8:46
  • Anything after Error Output: ?? ALso the version of your laravel Commented May 13, 2016 at 8:48
  • Please see my edit. I use Laravel 5.2 Commented May 13, 2016 at 8:51

1 Answer 1

1

Move php artisan clear-compiled from "pre-update-cmd" to the "post-update-cmd" in your composer.json file

"post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize" ] 
Sign up to request clarification or add additional context in comments.

1 Comment

The error is caused because there was a change made to how composer works. More details github.com/composer/composer/issues/5066#issuecomment-196979820

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.