【问题标题】:Why is lando often giving me "Install of vendor/package failed?为什么 lando 经常给我“安装供应商/包失败?
【发布时间】:2022-11-19 13:47:06
【问题描述】:

我在 Mac 上,经常收到 Install of vendor/package failed 消息。这可以只是 drupal/core 或几个 drupal 模块。 lando composer install 输出包括以下几行:

- Installing vardot/varbase (9.0.8): Extracting archive
  22/452 [=>--------------------------]   4%    Skipped installation of bin Resources/bin/var-dump-server for package symfony/var-dumper: name conflicts with an existing file
  29/452 [=>--------------------------]   6%    Skipped installation of bin scripts/release for package consolidation/self-update: name conflicts with an existing file
  34/452 [==>-------------------------]   7%    Skipped installation of bin bin/generate-defuse-key for package defuse/php-encryption: name conflicts with an existing file
  67/452 [====>-----------------------]  14%    Skipped installation of bin bin/generate-deps-for-config-factory for package laminas/laminas-servicemanager: name conflicts with an existing file
    Skipped installation of bin bin/generate-factory-for-class for package laminas/laminas-servicemanager: name conflicts with an existing file
 155/452 [=========>------------------]  34%    Skipped installation of bin bin/simple-phpunit for package symfony/phpunit-bridge: name conflicts with an existing file
 195/452 [============>---------------]  43%    Skipped installation of bin bin/validate-json for package justinrainbow/json-schema: name conflicts with an existing file
 205/452 [============>---------------]  45%    Skipped installation of bin bin/jsonlint for package seld/jsonlint: name conflicts with an existing file
 212/452 [=============>--------------]  46%    Skipped installation of bin security-checker for package enlightn/security-checker: name conflicts with an existing file
 225/452 [=============>--------------]  49%    Skipped installation of bin bin/psysh for package psy/psysh: name conflicts with an existing file
 229/452 [==============>-------------]  50%    Skipped installation of bin robo for package consolidation/robo: name conflicts with an existing file
 237/452 [==============>-------------]  52%    Install of drupal/core failed
    Install of drupal/commerce failed
    Install of chi-teck/drupal-code-generator failed
    Install of drush/drush failed
    Install of drupal/devel failed
    Install of ezyang/htmlpurifier failed
    Install of drupal/entity_browser failed
    Install of elasticsearch/elasticsearch failed
    Install of ruflin/elastica failed
    Install of nodespark/des-connector failed


  [RuntimeException]
  Could not delete /app/vendor/composer/aa54b6df/drupal-core-23b4d51/misc/icons:

我在 Lando Slack 上收到的一些建议包括检查 Docker 可用空间

并检查权限(所有文件都是 644,所有目录都是 755),但没有用。另外 lando composer install -v 给了我这个:

Executing command (CWD): rm -rf '/app/vendor/composer/2ffefe25'
    Install of drupal/core failed
Executing command (CWD): rm -rf '/app/vendor/composer/2ffefe25'

lando composer installlando composer install -v 输出来自不同的时间。所以,我的问题是,我该如何处理?

【问题讨论】:

  • 您说您检查了文件权限...但是您是否尝试更改权限?
  • 是的,我做到了,所有文件都是 644,目录是 755。
  • 我不确定 app/vendor/composer/2ffefe25 文件夹是什么。尝试删除它(进行备份),然后再次运行lando composer install

标签: drupal lando


【解决方案1】:

"process-timeout": 0 似乎有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-26
    • 2016-05-11
    • 1970-01-01
    • 2012-09-28
    相关资源
    最近更新 更多