首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编写器:安装到组件中的eonasdan/bootstrap-datetimepicker选择器

编写器:安装到组件中的eonasdan/bootstrap-datetimepicker选择器
EN

Stack Overflow用户
提问于 2015-10-10 13:11:01
回答 1查看 1K关注 0票数 1

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

但是,与所有其他包不同,它及其依赖项被安装到components中,而不是安装到vendor/components中。

代码语言:javascript
复制
$ 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
代码语言:javascript
复制
$ ls -l components/
totale 624
drwxr-xr-x 4 mirko mirko   4096 ott 10 15:07 bootstrap-datetimepicker
drwxr-xr-x 2 mirko mirko   4096 ott 10 15:07 jquery
drwxr-xr-x 4 mirko mirko   4096 ott 10 15:07 moment
-rw-r--r-- 1 mirko mirko 537897 ott 10 15:07 require-built.js
-rw-r--r-- 1 mirko mirko    611 ott 10 15:07 require.config.js
-rw-r--r-- 1 mirko mirko      0 ott 10 15:07 require.css
-rw-r--r-- 1 mirko mirko  81714 ott 10 15:07 require.js

顺便说一句,我已经注意到,jQuery和jQuery都再次安装了(因为它们是引导-日期选择器的依赖项),尽管我已经安装了它们(出于我的原因)。

这一切为什么要发生?我怎么才能修好它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-19 21:48:45

我发现了一个类似的问题。你可以编辑你的component-dir

代码语言:javascript
复制
{
    "require": {
        "components/jquery": "*"
     },
     "config": {
          "component-dir": "web/assets"
     }
}

更多关于它的信息Composer installs jQuery components in wrong directory

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33054378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档