Composer php 编写器:eonasdan/bootstrap datetimepicker安装到组件中

Composer php 编写器:eonasdan/bootstrap datetimepicker安装到组件中,composer-php,bootstrap-datetimepicker,Composer Php,Bootstrap Datetimepicker,对于我的CakePHP应用程序,我试图通过composer安装eonasdan/bootstrap datetimepicker 但是,与所有其他软件包不同,它及其依赖项安装在组件中,而不是安装在供应商/组件中: $ composer require eonasdan/bootstrap-datetimepicker Using version dev-master for eonasdan/bootstrap-datetimepicker ./composer.json has been up

对于我的CakePHP应用程序,我试图通过composer安装
eonasdan/bootstrap datetimepicker

但是,与所有其他软件包不同,它及其依赖项安装在
组件中,而不是安装在
供应商/组件中:

$ composer require eonasdan/bootstrap-datetimepicker
Using version dev-master for eonasdan/bootstrap-datetimepicker
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing symfony/process (v2.7.5)
    Loading from cache

  - Installing kriswallsmith/assetic (v1.3.0)
    Loading from cache

  - Installing robloach/component-installer (0.2.3)
    Loading from cache

  - Installing moment/moment (2.10.6)
    Loading from cache

  - Installing eonasdan/bootstrap-datetimepicker (dev-master fd8bd86)
    Cloning fd8bd86dd78f789fb742798b7d49aba0a957af62

kriswallsmith/assetic suggests installing twig/twig (Assetic provides the integration with the Twig templating engine)
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
kriswallsmith/assetic suggests installing patchwork/jsqueeze (Assetic provides the integration with the JSqueeze JavaScript compressor)
Writing lock file
Generating autoload files
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files

顺便说一句,我注意到jQuery和Moment都再次安装(因为它们是bootstrap datetimepicker的依赖项),尽管我已经安装了它们(出于我的原因)


为什么会发生这种情况?我怎样才能修复它?

我发现了一个类似的问题。您可以编辑组件目录

{
    "require": {
        "components/jquery": "*"
     },
     "config": {
          "component-dir": "web/assets"
     }
}

更多关于它的信息

我有同样的问题。谢谢@Vinicius,标记为重复。
{
    "require": {
        "components/jquery": "*"
     },
     "config": {
          "component-dir": "web/assets"
     }
}