I am trying to update some Drupal modules using Composer.
When I run composer outdated "drupal\*"
to see what updates are available, it shows a list of modules requiring an update.
But when I run composer update <module-name> --with-dependencies
it gives me a memory allocation error.
If I run it with sudo
(not recommended, I know. But trying everything.), it does nothing. No error reported. Nothing.
I have tried composer clearcache
already but it didn't help any. What am I doing wrong? Why is this so?