I ran the following command and nothing happened, no error display, no response, nothing.

php composer.phar config repositories.drupal composer https://packages.drupal.org/8

Then I ran the following command and got the following output, indicating that the previous command did not download and install drupal/address.

php composer.phar update drupal/address --with-dependencies

Package "drupal/address" listed for update is not installed. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)

Package operations: 27 installs, 0 updates, 0 removals
- Installing symfony/dom-crawler (v2.7.6) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing symfony/css-selector (v2.8.4) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing symfony/browser-kit (v2.7.6) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing fabpot/goutte (v3.1.2) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing behat/mink (v1.7.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing behat/mink-browserkit-driver (v1.3.2) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing behat/mink-goutte-driver (v1.2.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing jcalderonzumba/gastonjs (v1.0.2) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing jcalderonzumba/mink-phantomjs-driver (v0.3.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing mikey179/vfsstream (v1.6.0) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/version (1.0.6) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/global-state (1.0.0) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/recursion-context (1.0.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/exporter (1.2.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/environment (1.3.2) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/diff (1.3.0) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing sebastian/comparator (1.2.0) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/php-text-template (1.2.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing doctrine/instantiator (1.0.5) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/phpunit-mock-objects (2.3.8) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/php-timer (1.0.7) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/php-file-iterator (1.4.1) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/php-token-stream (1.4.8) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/php-code-coverage (2.2.4) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpdocumentor/reflection-docblock (2.0.4) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpspec/prophecy (v1.5.0) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
- Installing phpunit/phpunit (4.8.27) Downloading: 100%
> Drupal\Core\Composer\Composer::vendorTestCodeCleanup
behat/mink suggests installing behat/mink-selenium2-driver (slow, but JS-enabled driver for any app (requires Selenium2))
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess

----
Is there some documentation somewhere to help me get past this problem?
The first commend did not report any errors, but it obviously did not complete the tasks requested.
the second command output:
--
Package "drupal/address" listed for update is not installed. Ignoring.
--
Clearly indicates that the first command did nothing.
What is the problem?
How does one go about fixing the problem?
Seriously, the first command should at least provide some sort of error report or something when it does nothing!

CommentFileSizeAuthor
#4 Screen Shot 2017-01-17 at 08.55.27.png114.62 KBborisson_
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sprite created an issue. See original summary.

borisson_’s picture

Category: Bug report » Support request
Priority: Major » Normal
Status: Active » Fixed

All php composer.phar config repositories.drupal composer https://packages.drupal.org/8 does is configure composer (for this install) to understand where to find drupal modules.

It doesn't actually install anything. The update command (php composer.phar update drupal/address --with-dependencies) only updates already installed packages. There's another command, install to install dependencies.

To install dependencies, use: php composer.phar require "drupal/address ~1.0".

It looks like the project page of address has this information, so there's nothing they can do to improve documentation. Closing this issue.

sprite’s picture

Hi https://www.drupal.org/u/borisson_

I actually got the address module install working, but with a lot of experimentation and trying procedures not described in the complete documentation provided by an one given website, including the commerceguys website, which had poor documentation as well.

Basically, the instructions provided in various locations are essentially incomplete and don't account for contigencies.

The first problem is that the documentation does not explain that the:

composer manager module

must be installed via the normal Drupal 8 extend GUI module install UI first, before doing any of the address module install steps.

After that I discovered from another site it is required to run:

php modules/composer_manager/scripts/init.php

did that.

Then I ran the following command:

php composer.phar --verbose drupal-update

The command above updated all sorts of libraries all over Drupal 8, which appeared to help get the dependencies ready.

Then I ran:

php composer.phar require drupal/address

and the module installed.

Then I ran:

php composer.phar update drupal/address --with-dependencies

Which checked that everything was up to date.

As a final step, then I was able to go to the D8 GUI extend page and "enable" the module.

By the way, the process is ridiculous, absurd.

Average Drupal users, whose questions I answer a lot of on the forums, are never going to figure out or put up with any of this in the long run.

Down the road, D8 Drupal Commerce is simply going to die on the vine, because only a very few people will be willing to put with the complexities of merely getting it all installed !!!!!!

Also - marking the "issue" fixed, before I even had a chance to respond, is just plain rude.

borisson_’s picture

Issue summary: View changes
FileSize
114.62 KB

So the composer manager module is not required. It's actually deprecated. That's also mentioned on the composer_manager page:

The Drupal 8 version of this module is deprecated and no longer needed, due to improvements in Drupal 8.1. Use Composer directly to get the needed modules, which will also download their required libraries.

This means that all the steps you took to use that module are not needed, and to make sure that I was actually telling the truth I tested this on a fresh d8.3.


It might help if you check out https://github.com/mglaman/conductor to help you use composer.

I'm sorry for being rude. I didn't mean to be.

bojanz’s picture

Right. The only two steps needed are listed on both the project page and in the README. You didn't follow them.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.