无法扫描文件夹中看起来不是文件或文件夹的类

时间:2016-06-22 19:07:43

标签: php composer-php

我试图通过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>]...

1 个答案:

答案 0 :(得分:0)

看起来像作曲家的自动加载器希望看到一个不存在的Behat目录结构。看看这个post类似的问题,其解决方案是删除任何预编写器安装的模块并重新运行composer update。如果这是您的开发环境,您也可以删除您的&#34;供应商&#34;目录,并根据需要重新运行composer updatecomposer install