PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 21, 2022

[FIXED] Why Composer require jquery installs unwanted PHP packages?

 January 21, 2022     composer-php, jquery, php     No comments   

Issue

I just wanted jQuery and entered in the command line composer require components/jquery ^1.11

But the log shows me:

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

Why does Composer install PHP related packages I never intended to install? And how do I get rid of the unwanted packages? Is there an better/cleaner install method?


Solution

you are trying to install on of 1.11 versions of a package, which is requires "robloach/component-installer" package to install , you can see that clearly here :

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

however, robloach/component-installer requires some additional packages too, also you can see that here

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


Answered By - hassan
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing