I have installed Drupal Commerce 2 through composer as mentioned in


after that, I have installed a few modules and a Barrio (Theme) directly through drupal admin interface.

Can I still update them through composer?

I have tried to update with ~/composer.phar update drupal/block_class --with-dependencies, but I am getting the following output.

DrupalProject\composer\ScriptHandler::checkComposerVersion Package "drupal/block_class" listed for update is not installed. Ignoring.
Loading composer repositor
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files


Can I still update them through composer?

No, Composer can only manage packages that have been installed through Composer.

You could always add it to the "require" section of your existing composer.json (manually or by executing composer require), then Composer will know about it.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.