我试图通过Composer安装widgets and forms module。但对于两者我都有一些错误。
可能有什么问题?
无法扫描“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>]...
答案 0 :(得分:0)
看起来像作曲家的自动加载器希望看到一个不存在的Behat目录结构。看看这个post类似的问题,其解决方案是删除任何预编写器安装的模块并重新运行composer update
。如果这是您的开发环境,您也可以删除您的&#34;供应商&#34;目录,并根据需要重新运行composer update
或composer install
。