使用Composer安装Drupal /编码器安装时出错

时间:2019-08-17 18:43:51

标签: composer-php drupal-8

试图在bluehost sharedhosting上通过composer安装drupal。我可以使用composer进行其他安装而不会出现问题,并且git可以正常工作。

使用 composer create-project drupal-composer / drupal-project:8.x-dev drupal-composer-build --stability dev --no-interaction 命令,我收到此错误:

- Installing drupal/coder (8.3.6): Cloning 4337ddf58d from cache

  [RuntimeException]
  Failed to execute git clone --no-checkout '/home4/domainco/.composer/cache/v
  cs/https---git.drupalcode.org-project-coder.git/' '/home4/domainco/public_ht
  ml/cms/vendor/drupal/coder' --dissociate --reference '/home4/domainco/.compo
  ser/cache/vcs/https---git.drupalcode.org-project-coder.git/' && cd '/home4/
  domainco/public_html/cms/vendor/drupal/coder' && git remote set-url origin '
  https://git.drupalcode.org/project/coder.git' && git remote add composer 'h
  ttps://git.drupalcode.org/project/coder.git'

我已经搜索了drupal论坛和https://github.com/drupal-composer/drupal-project/issues问题跟踪器,但没有找到解决方案。如果我从cli中的错误运行该命令,则会得到一个名为drupal-composer-build / vendor / drupal / coder的目录。因此它似乎可以独立运行...:

git clone --no-checkout '/home4/domainco/.composer/cache/vcs/https---git.drupalcode.org-project-coder.git/' '/home4/domainco/public_html/cms/drupal-composer-build/vendor/drupal/coder' --dissociate --reference '/home4/domainco/.composer/cache/vcs/https---git.drupalcode.org-project-coder.git/' && cd '/home4/domainco/public_html/cms/drupal-composer-build/vendor/drupal/coder' && git remote set-url origin 'https://git.drupalcode.org/project/coder.git' && git remote add composer 'https://git.drupalcode.org/project/coder.git'

我在这里不知所措。过去尝试的任何想法或解决方案都会很棒。

编辑:我能够使用git clone安装Drupal 8并运行安装过程。但是,当我运行任何 composer install drupal / bootstrap 之类的作曲家命令时,都会出现相同的错误:

    - Installing drupal/coder (8.3.6): Cloning 4337ddf58d from cache
 [RuntimeException]
      Failed to execute git clone --no-checkout

0 个答案:

没有答案