为什么Composer要求jquery安装不需要的PHP包?

为什么Composer要求jquery安装不需要的PHP包?,php,jquery,composer-php,Php,Jquery,Composer Php,我只是想要jQuery,然后输入命令行 composer需要组件/jquery^1.11 但是日志告诉我: Package operations: 4 installs, 0 updates, 0 removals - Installing symfony/process (v3.2.7): Loading from cache - Installing kriswallsmith/assetic (v1.4.0): Loading from cache - Installing r

我只是想要jQuery,然后输入命令行
composer需要组件/jquery^1.11

但是日志告诉我:

Package operations: 4 installs, 0 updates, 0 removals
  - Installing symfony/process (v3.2.7): Loading from cache
  - Installing kriswallsmith/assetic (v1.4.0): Loading from cache
  - Installing robloach/component-installer (0.2.3): Loading from cache
  - Installing components/jquery (1.11.0): Loading from cache

为什么Composer会安装我从未打算安装的PHP相关软件包?我该如何处理那些不需要的包裹呢?是否有更好/更干净的安装方法

您正试图安装一个软件包的
1.11
版本,它需要
安装“robloach/component installer”
软件包,您可以清楚地看到:

但是,
robloach/component installer
也需要一些额外的软件包, 你也可以看到


您正在尝试安装一个软件包的
1.11
版本,该软件包需要
“robloach/component installer”
软件包才能安装,您可以清楚地看到:

但是,
robloach/component installer
也需要一些额外的软件包, 你也可以看到


非常感谢你的精彩解释。您能告诉我如何只安装纯jQuery而不安装依赖项吗?有可能吗?
composer require components/jquery
将安装3.2版,该版本不需要任何依赖项,谢谢Hassan!;)非常感谢你的精彩解释。您能告诉我如何只安装纯jQuery而不安装依赖项吗?有可能吗?
composer require components/jquery
将安装3.2版,该版本不需要任何依赖项,谢谢Hassan!;)
"require": {
        "robloach/component-installer": "*"
},
"require": {
        "php": ">=5.3.2",
        "kriswallsmith/assetic": "1.*",
        "composer-plugin-api": "^1.0"
},