我正在尝试使用composer安装Magento2.3.5。
muk@muk:/var/www/html$ composer create-project -存储库-url=https://repo.magento.com/magento/project-=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。
我怎么才能修好它?
注意:为了修复它,我停止使用共享文件夹。现在,我将整个代码保存在VM中,并且不使用共享文件夹。对于文件同步,我使用诱变剂。
发布于 2021-09-19 17:22:03
如果有人遇到这个问题,那么virtualBox和共享文件夹就会出现问题。解压缩文件时,它们不能立即在环境中使用。
该解决方案由拉坎普提供,也可在这里获得:
https://stackoverflow.com/a/66413857/1470145
简而言之,需要重写解压缩以在解压缩后添加一个短暂的延迟。
发布于 2020-05-09 11:36:44
我以为我也有同样的问题,但结果却是另外一回事。
升级对我来说还不错,沙箱/清洁2.3.4安装,以及运行2.3.4的客户端项目。
有几件事:
~/.composer/cache/files/laminas)。~/.composer)希望这有帮助
https://stackoverflow.com/questions/61574780
复制相似问题