gpt4 book ai didi

php - 无法扫描既不是文件也不是文件夹的文件夹内的类

转载 作者:行者123 更新时间:2023-12-05 07:48:55 26 4
gpt4 key购买 nike

我正在尝试安装 widgets and forms module通过 Composer 。但是对于两者我都得到了一些错误。

有什么问题?

Could not scan for classes inside "cms//tests/behat/"

$ composer require silverstripe/widgets
Using version ^1.2 for silverstripe/widgets
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing silverstripe/widgets (1.2.2)
Downloading: 100%

Writing lock file Generating autoload files

Installation failed, reverting ./composer.json to its original content.


[RuntimeException] Could not scan for classes inside "cms//tests/behat/" which does not appear to be a file nor a folder


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

最佳答案

看起来 Composer 的自动加载器希望看到不存在的 Behat 目录结构。看这个post那里有一个类似的问题,解决方案是删除任何预 Composer 安装的模块并重新运行 composer update。如果这是您的开发环境,您还可以删除“vendor”目录,并根据需要重新运行 composer updatecomposer install

关于php - 无法扫描既不是文件也不是文件夹的文件夹内的类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37976377/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com