Install – "Permissions" when running "composer create-project drupal-composer / drupal-project: 8.x-dev http –stability dev –no-interact"

I am trying for the first time to completely manage a D8 project with Composer, using the famous one Drupal project Template. I work on Windows with PHP 7.1 and the latest version of Composer and use the following command in PowerShell (with and without administrator rights):

composer create-project drupal-composer / drupal-project: 8.x-dev http –stability dev –no-interact

However, this will issue several bugs (complete log down) and will eventually be incomplete, resulting in only some of the project directories being created (eg no "web" or "core" directory).

Following the composer documentation, I tried to use Composer with a blank project and the following composer.json file:

{
"need": {
Monologue / monologue: 1.0. *
}
}

To run Install Composer On this project runs without problem: The package was successfully downloaded to the "Vendor" directory. Not so seem to be as if it were a problem with composer. (But maybe I am wrong.)

I also tried to empty the composer's cache (running) Composer Clearcache), but it does not solve my problem.

I've tried to search online for a solution to this problem, but I can not seem to find anything that I can apply to my case.

I am an absolute newcomer to Composer, so any help with this matter would be greatly appreciated. Thank you in advance.

Here's the full issue when I try to do that Drupal project Template:

PS W:  htdocs  _tests  composer> create a composer project drupal-composer / drupal-project: 8.x-dev http --stability dev --no-interact
Installing Drupal-composer / drupal-project (8.x-dev ec0f41171516c18357ca4cda9068ee4cdeabaa19)
- Installation of drupal-composer / drupal-project (8.x-dev ec0f411): cloning of ec0f411715 from the cache
Error downloading Drupal-Composer / Drupal project from source code: Cloning from https://github.com/drupal-composer/drupal-project.git via https, SSH logs, abort failed.

- https://github.com/drupal-composer/drupal-project.git
Cloning in W:  htdocs  _tests  composer  http & # 39; ...
fatal: & # 39; / cygdrive / w / htdocs / _tests / composer / C: / Users / username / AppData / Local / Composer / vcs / https --- github.com-drupal-composer-drupal-project.git / & # 39; does not seem to be a git repository
fatal: Could not read from the remote repository.

Please make sure you have the correct access rights
and the repository exists.

- git@github.com: drupal-composer / drupal-project.git
Cloning in W:  htdocs  _tests  composer  http & # 39; ...
fatal: & # 39; / cygdrive / w / htdocs / _tests / composer / C: / Users / username / AppData / Local / Composer / vcs / https --- github.com-drupal-composer-drupal-project.git / & # 39; does not seem to be a git repository
fatal: Could not read from the remote repository.

Please make sure you have the correct access rights
and the repository exists.

Now it is trying to download from dist
- Installation of drupal-composer / drupal-project (8.x-dev ec0f411): Load from the cache
Project created in http
> DrupalProject  composer  ScriptHandler :: checkComposerVersion
Load Composer repositories with package information
The file "https://packages.drupal.org/8/packages.json" could not be downloaded: php_network_getaddresses: getaddrinfo failed: This is usually a temporary error in resolving the host name, meaning that the local server has no response from has received a relevant server.
Failed to open stream: php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution, meaning that the local server did not receive a response from an authoritative server.
https://packages.drupal.org/8 could not be fully loaded. The package information has been loaded from the local cache and may be outdated
Update dependencies (including require-dev)
Package operations: 140 installations, 0 updates, 0 distances
- Installing cweagans / composer-patches (1.6.6): Download (100%)
- Install Composer / Installer (v1.6.0): Load from cache
- Install zaporylie / composer-drupal-optimizations (1.1.0): Load from cache
- Install Composer / Semver (1.5.0): Load from cache
- Installing Drupal-Composer / Drupal-Scaffold (2.6.1): Load from cache
- Installation of symfony / polyfill-ctype (v1.11.0): Load from cache
- Installation of symfony / finder (v3.4.27): Load from cache
- Installation of symfony / yaml (v3.4.27): Load from the cache
- Installation of Drupal / Console Extend plugin (0.9.2): Load from the cache
- Installation of paragonie / random_compat (v2.0.18): Load from the cache
- Installation of symfony / polyfill-php70 (v1.11.0): Load from cache
- Installation of symfony / polyfill-mbstring (v1.11.0): Load from cache
- Installation of symfony / http-foundation (v3.4.27): Load from cache
- Installation of symfony / dom-crawler (v3.4.27): Load from cache
- Installation of symfony / css-selector (v3.4.27): Load from cache
- Installation of jakub-onderka / php-console-color (v0.2): Load from the cache
- Installation of jakub-onderka / php-console-highlighter (v0.4): Load from the cache
- Installation of dnoegel / php-xdg-base-dir (0.1): Load from the cache
- Installation of nikic / php-parser (v4.2.1): Load from the cache
- Installation of symfony / polyfill-php72 (v1.11.0): Load from cache
- Installation of symfony / var-dumper (v4.2.8): Load from the cache
- Installing psr / log (1.1.0): Load from cache
- Installation of symfony / debug (v3.4.27): Load from the cache
- Installation of symfony / console (v3.4.27): Load from the cache
- Installing psy / psysh (v0.9.9): Load from cache
- Installing ralouphie / getallheaders (2.0.5): Load from cache
- Install psr / http-message (1.0.1): Load from cache
- Install guzzlehttp / psr7 (1.5.2): Load from cache
- Install guzzlehttp / promises (v1.3.1): Load from cache
- Install guzzlehttp / guzzle (6.3.3): Load from cache
- Installation of webmozart / assert (1.4.0): Load from the cache
- Installation of webmozart / path-util (2.3.0): Load from the cache
- Installation of webflo / drupal-finder (1.1.0): Load from the cache
- Installing twig / twig (v1.41.0): Load from cache
- Installation of symfony / translation (v3.4.27): Load from the cache
- Installation of symfony / process (v3.4.27): Load from the cache
- Installation of symfony / filesystem (v3.4.27): Load from the cache
- Installation of symfony / event dispatcher (v3.4.27): Load from the cache
- Installing psr / container (1.0.0): Load from cache
- Installing Symfony / Dependency Injection (v3.4.27): Load from cache
- Installation of symfony / config (v3.4.27): Load from the cache
- Installation of stecman / symfony-console-completion (0.10.1): Load from cache
- Installation of drupal / console-en (1.8.0): Load from the cache
- Installation of dflydev / placeholder-resolver (v1.0.2): Load from the cache
- Installation of dflydev / dot-access-data (v1.1.0): Load from the cache
- Installation of the dflydev / dot-access configuration (v1.0.3): Load from the cache
- Installation of Drupal / Console-Core (1.8.0): Load from the cache
- Installation of doctrine / collections (v1.6.1): Load from the cache
- Installation of doctrine / lexer (v1.0.1): Load from the cache
- Installation of doctrine / annotations (v1.6.1): Load from the cache
- Installation of Alchemy / Zippy (0.4.3): Load from cache
- Installation of Drupal / Console (1.8.0): Load from the cache
- Installation of justinrainbow / json-schema (5.2.8): Load from cache
- Installation of symfony / phpunit-bridge (v3.4.27): Load from the cache
- Installation of sebastian / recursion-context (3.0.0): Load from cache
- Install doctrine / instantiator (1.2.0): Load from cache
- Installation of Sebastian / Exporter (3.1.0): Load from the cache
- Installation of sebastian / diff (2.0.1): Load from cache
- Installation of sebastian / comparator (2.1.3): Load from the cache
- Installation of phpdocumentor / reflection-common (1.0.1): Load from the cache
- Installation of phpdocumentor / type-resolver (0.4.0): Load from cache
- Installation of phpdocumentor / reflection-docblock (4.3.1): Load from cache
- Installation of phpspec / prophecy (1.8.0): Load from cache
- Installation of Sebastian / Version (2.0.1): Loading from the cache
- Installation of sebastian / resource-operations (1.0.0): Load from cache
- Installation of Sebastian / Object-Reflector (1.1.1): Load from the cache
- Installation of Sebastian / Object-Enumerator (3.0.3): Load from cache
- Installation of sebastian / global-state (2.0.0): Load from cache
- Installation of sebastian / environment (3.1.0): Load from cache
- Installation of phpunit / php-text-template (1.2.1): Load from the cache
- Installing phpunit / phpunit-mock-objects (5.0.10): Load from cache
- Installation of phpunit / php-timer (1.0.9): Load from the cache
- Installation of phpunit / php-file-iterator (1.4.5): Load from the cache
- Installation of Theseer / Tokenizer (1.1.2): Loading from the cache
- Installation of sebastian / code-unit-reverse-lookup (1.0.1): Load from cache
- Installation of phpunit / php-token-stream (2.0.2): Load from the cache
- Installation of phpunit / php-code-coverage (5.3.2): Loading from the cache
- Installation of phar-io / version (1.0.1): Load from the cache
- Installation of phar-io / manifest (1.0.1): Load from the cache
- Installing myclabs / deep-copy (1.9.1): Loading from the cache
- Installation of phpunit / phpunit (6.5.14): Load from the cache
- Installation of mikey179 / vfsstream (v1.6.6): Load from the cache
- Installation of jcalderonzumba / gastonjs (v1.2.0): Load from the cache
- Install behat / mink (dev-master 6d637f7): Clone 6d637f7af4 from the cache
Error downloading behat / mink from source: Cloning from https://github.com/minkphp/Mink.git via https, SSH logs, abort failed.

- https://github.com/minkphp/Mink.git
Cloning in W:  htdocs  _tests  composer  http  vendor  behat  mink & # 39; ...
fatal: & # 39; / cygdrive / w / htdocs / _tests / composer / http / C: /users/username/appdata/local/composer/vcs/ https --- github.com-minkphp-mink.git / & # 39; does not seem to be a git repository
fatal: Could not read from the remote repository.

Please make sure you have the correct access rights
and the repository exists.

- git@github.com: minkphp / Mink.git
Cloning in W:  htdocs  _tests  composer  http  vendor  behat  mink & # 39; ...
fatal: & # 39; / cygdrive / w / htdocs / _tests / composer / http / C: /users/username/appdata/local/composer/vcs/ https --- github.com-minkphp-mink.git / & # 39; does not seem to be a git repository
fatal: Could not read from the remote repository.

Please make sure you have the correct access rights
and the repository exists.

Now it is trying to download from dist
- Install behat / mink (dev-master 6d637f7): Load from the cache
- Installation of the jcalderonzumba / mink-phantomjs driver (v0.3.3): Load from the cache
- Install squizlabs / php_codesniffer (3.4.2): Load from cache
- Installation of Drupal / Coder (8.3.3): Cloning of a33d3388fb from the cache


  [RuntimeException]
  Error running git clone --no-checkout "C: / Users / username / AppData / Local / Composer / vcs / https --- git.drupal.org-pro
ject-coder.git / "" W:  htdocs  _tests  composer  http  vendor  drupal  coder "--dissociate --reference" C: / Users / username /
AppData / Local / Composer / vcs / https --- git.drupal.org-project-coder.git / "&& cd / D" W:  htdocs  _tests  composer  http  vend
or  drupal  coder "& git remote set-url origin" https://git.drupal.org/project/coder.git "& git remote add composer
"Https://git.drupal.org/project/coder.git"

Cloning in W:  htdocs  _tests  composer  http  vendor  drupal  coder & # 39; ...
fatal: & # 39; / cygdrive / w / htdocs / _tests / composer / http / C: /users/user_name / AppData / Local / Composer / vcs / https --- git.drupal.or
g-project-coder.git / & # 39; does not seem to be a git repository
fatal: Could not read from the remote repository.

Please make sure you have the correct access rights
and the repository exists.


Create a project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--]    [[[[][[[[][[[[]PS W:  htdocs  _tests  composer>

7 – Supports composer_manager AND drupal-composer / drupal-project with the Contrib module

Motivation / use case

I maintain the module package https://drupal.org/project/cfr, which currently requires the installation of composer_manager and the composer_manager is needed in the * .info files of some submodules.

Now I also want to support sites that install all their modules through Composer, eg. with https://github.com/drupal-composer/drupal-project.

Composer_manager is now required for the automatically generated composer.json files because they are generated from the * .info files.

composer_manager is undesirable in this context and even creates a conflict with composer_autoloader needed by drupal-composer / drupal-project.

A special feature here is that there is no actual module named & # 39; cfr & # 39; gives. All modules in the package are submodules like & # 39; cfrapi & # 39 ;, & # 39; cfrplugin & # 39; cfrplugindiscovery & # 39; This may be a good choice, but it is not what it is now

Technical observations

By looking at ~ / .composer / cache / repo / https — packages.drupal.org-7 / *, I noticed that Composer / packages.drupal.org creates submodule meta packages.

Even if the sub-module already has a composer.json file, it will be replaced by a generated composer.json file, for which only the module dependencies from the * .info file and not the third-party dependencies from the composer.json file are used. File are required.

This means:
– The meta packages require modules like drupal / xautoload and drupal / composer_manager.
– The meta packages DO NOT need any manufacturer libraries like donquixote / annotation-parser anymore.
– The main package & # 39; cfr & # 39; seems to be a combination of metapackages, but does not require manufacturer libraries.

question

What do I have to do in a contrib module to support both composer_manager AND the full composer scenario?

How can I avoid the composer_manager dependency in the generated composer.json on submodule metapackages?

Especially with the above scenario?

For my taste, it's fine if all the third-party material is required for the root package. All I have to do is use drupal / composer_manager.

8 – Package drupal-composer / drupal-project could not be found with stable stability

I am using a shared server with CentOS 12.x.x and Bash 3.x.x (quite old versions). The hosting company states that it provides all the important tools for Drupal dev (or similar), but I went for it public_html you and did the following to download a recent composed druapl with the latest local drush:

composer create-project drupal-composer / drupal-project

I have:

Package drupal-composer / drupal-project could not be found with stability
stable.

Is this problem coming from the hosting company?