0

I have installed Drupal Commerce 2 through composer as mentioned in

https://docs.drupalcommerce.org/commerce2/developer-guide/install-update/installation

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
DrupalProject\composer\ScriptHandler::createRequiredFiles

1 Answer 1

0

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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