i guess it is a composer problem, maybe it's not up to date?
composer update --no-plugins
and also can you please change these settings:
~/.composer/config.json
{
"config": {
"process-timeout": 600,
"preferred-install": "dist",
"github-protocols": ["https"]
}
}
and also, can you please clear it's cache?
rm -rf ~/.composer/cache
My other recommendation is:
Change permissions/owner of your files/directory.
Redefine owner:
sudo chown myuser:myuser -R /path/to
Maybe there is some lack of permissions for group which you are in.
So, try to run:
sudo chmod g+rwX -R /path/to