为什么作曲家需要jQuery安装不需要的PHP软件包



我只是想要jQuery并进入命令行 composer require components/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

为什么作曲家安装我从未打算安装的相关软件包?我如何摆脱不需要的包裹?有更好/清洁的安装方法吗?

您正在尝试在包装的1.11版本上安装,这是需要安装的"robloach/component-installer"软件包,您可以在此处清楚地看到:

"require": {
        "robloach/component-installer": "*"
},

但是, robloach/component-installer也需要一些其他软件包您也可以在这里看到

"require": {
        "php": ">=5.3.2",
        "kriswallsmith/assetic": "1.*",
        "composer-plugin-api": "^1.0"
},

最新更新