Adding and removing a module from Drupal 8 using Composer

To add a module navigate to the directory that has your applications composer.json
You might take a look at the contents of composer.json
$nano composer.json
Then install the module from the command line using:
$composer require drupal/address
You can revisit composer.json and see that it is installed.

If you want to remove it you can simply

$composer update

Leave a Reply

Your email address will not be published. Required fields are marked *