使用作曲家的Magento 2.3.5全新安装会导致错误

问题描述 投票:0回答:1

我正在尝试使用作曲家安装Magento 2.3.5。

muk @ muk:/ var / www / html $ composer create-project --repository-url =https://repo.magento.com/magento / project-community-edition = 2.3.5 magento23

Creating a "magento/project-community-edition" project at "./magento23"
Installing magento/project-community-edition (2.3.5-p1)
  - Installing magento/project-community-edition (2.3.5-p1): Loading from cache
Created project in /var/www/html/magento23
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 463 installs, 0 updates, 0 removals
  - Installing magento/magento-composer-installer (0.1.13): Loading from cache
  - Installing laminas/laminas-dependency-plugin (1.0.3): Loading from cache
Plugin installation failed (include(/var/www/html/magento23/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPlugin.php): failed to open stream: No such file or directory), rolling back
  - Removing laminas/laminas-dependency-plugin (1.0.3)


  [ErrorException]
  include(/var/www/html/magento23/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPlugin.php): failed to open stream: No such file or directory


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

我遇到以下错误。

Plugin installation failed (include(/var/www/html/magento23/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPlugin.php): failed to open stream: No such file or directory), rolling back
      - Removing laminas/laminas-dependency-plugin (1.0.3)

我的作曲家版本

muk@muk:/var/www/html$ composer --version

Composer version 1.10.5 2020-04-10 11:44:22

我正在使用带有共享文件夹的VirtualBox。

我该如何解决?

magento2
1个回答
0
投票

我以为我遇到了同样的问题,但事实证明那是另外一回事。

对于我来说,升级顺利,对于沙盒/ clean 2.3.4安装,以及运行2.3.4的客户端项目。

几件事:

  • 这可能是您的缓存出现问题,请尝试清除作曲者的层缓存(通常为~/.composer/cache/files/laminas
  • 尽管可能会抱怨,但是您可能有未满足的平台要求(PHP版本等)
  • 尝试清除整个作曲器缓存(~/.composer
  • 仔细检查存储库URL(应该是2.3.5还是2.3.5-p1?)

希望有所帮助

© www.soinside.com 2019 - 2024. All rights reserved.