Interface "Interop\Container\ContainerInterface" not found on running any composer command - composer-php

Running any composer command throws the following error:
In ServiceLocatorInterface.php line 16:
[Error]
Interface "Interop\Container\ContainerInterface" not found
Need any workaround on this

It was a problem of incorrect installation most probably. I ended up deleting the directory that's supposed to have the files and ran composer install.

Related

command composer Install give error failed to extract

I'm using ubuntu server & trying to run composer install command in my Laravel project. But it give error
Failed to extract brick/math: (2) '/usr/bin/unzip' -qq '/var/www/html/xtendanceweb/vendor/composer/tmp-9f6f68323bcc502e257e735e3f7dcac8' -d '/var/www/html/xtendanceweb/vendor/composer/8fe377e7'
sh: 1: Cannot fork
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
I don't know why this is happening, any help would be helpful for me
Do composer clearcache first, then try to run the command again

Laravel Artisan not working at all after clone

I have this weird situation: I've cloned all my repositories from github in a new local machine running Mac OsX some of them has Laravel framework installed but only some of these can execute the cmd php artisan.
I've tried to check permission on folders, uninstall/re-install composer and I've also tried to install a fresh version of Laravel. Another problem is that running the command doesn't output anything - no errors, nothing - only a new empty line of the terminal.
The only thing I know is that if I clone one of the repositories, then run composer install it throws Script php artisan optimize handling the post-install-cmd event returned with error code 255.
Thanks
Update 1:
I've found running composer install -vvv -o that composer throw this error
Warning: require(/Users/USERNAME/laravel/bootstrap/autoload.php): failed to open stream: No such file or directory in /Users/USERNAME/laravel/artisan on line 16
Fatal error: require(): Failed opening required '/Users/USERNAME/laravel/bootstrap/autoload.php' (include_path='.:') in /Users/USERNAME/laravel/artisan on line 16
Update 2:
It seems that cmd git clone didn't copy that autoload file bootstrap/autoload.php for some reason that I don't understand at all.
I've imported the file manually from github and run, removed the vendor folder then run again composer install --no-scripts but still having the problem with artisan and if I run composer update it throw Script php artisan optimize handling the post-update-cmd event returned with error code 255
I had to re-install laravel and copy files manually to make it works again.

Error when running composer update: Script #symfony-scripts handling the post-update-cmd event returned with an error

I'm using Symfony 3.2 and am trying to run a composer update command. This composer file attached to a brand new install. The complete error is:
Script #symfony-scripts handling the post-update-cmd event returned
with an error [RuntimeException]
Error Output: sh: #symfony-scripts: command not found
I can't find any information on what this means or how to resolve it.
This was actually a composer issue and nothing to do with Symfony or it's vendor files. I needed to run composer selfupdate and then I could successfully run composer update
I solved it by editing the following in composer.json
change:
for:

I get an error when installing laravel or when I try updating composer. How do I resolve it?

I get this error
"require(/var/www/html/data_security/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/data_security/bootstrap/autoload.php on line 17"
when installing laravel or when I try updating composer. How do I resolve it?
For fresh installation you will need to run composer install instead of composer update. I faced similar issue and composer install did the trick for me.

bash configuration error : No such file or directory

i am trying to run tests using phpunit from a directory with the following path:
/home/rally/adserver/test/ by using the command phpunit classes/AdTest.php,
The command was working in previous times when i cloned the project but now for some reason after using git clone and composer install today i get this error:
bash: /home/rally/tests/adserver/src/vendor/bin/phpunit: No such file or directory
any help with how can i fix this or what is causing this? thx

Resources