composer update runs in error

Hi,

i want to do a composer update today and composer runs in error:


stefan$ composer update

Loading composer repositories with package information

Updating dependencies (including require-dev)

Package operations: 1 install, 29 updates, 2 removals

  - Removing symfony/debug (3.4.x-dev)

    The package has modified files:

    M .gitignore

    M BufferingLogger.php

    M CHANGELOG.md

    M Debug.php

    M DebugClassLoader.php

    M ErrorHandler.php

    M Exception/ClassNotFoundException.php

    M Exception/ContextErrorException.php

    M Exception/FatalErrorException.php

    M Exception/FatalThrowableError.php

    56 more files modified, choose "v" to view the full list

    Discard changes [y,n,v,d,?]? y


                                                                                                                                                                      

  [RuntimeException]                                                                                                                                                  

  Could not delete /Users/stefan/PhpstormProjects/olicci-adserver/adserver/vendor/symfony/debug/.git/objects/pack/pack-20c24116c72131c2c4f0656ae54354286efa23b7.idx:  

                                                                                                                                                                      


update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...



Anyone knows what can i do?

Thanks,

Stefan

It’s a permission issue. Check it and run again:


rm -rf vendor

composer clearcache

composer install -vvv

Thanks @_marcelo this has help