2017-04-17 8 views
0

私はjQueryのを望んでいたし、コマンドラインで composer require components/jquery ^1.11jqueryが不要なPHPパッケージをインストールする必要があるのはなぜですか?

に入った。しかし、ログは私を示しています

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関連のパッケージをインストールしますか?そして、どうすれば不要なパッケージを取り除くことができますか?より良い/クリーナーのインストール方法はありますか?しかし、robloach/component-installerはあまりにもいくつかの追加パッケージが必要

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

、 も:

答えて

3

インストールする"robloach/component-installer"パッケージを必要とされているパッケージの1.11バージョンにインストールしようとしている、あなたがはっきりhereをそれを見ることができますあなたは偉大な説明のためのものhere

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

おかげでたくさん見ることができます。依存関係のない純粋なjQueryのみをインストールする方法を教えてください。まったく可能ですか? – Hexodus

+0

'composer require components/jquery'が今度はインストールするでしょう - 必要な依存関係を必要としないバージョン3.2、https://github.com/components/jquery/blob/master/composer.json – hassan

+0

ありがとうハッサン! ;) – Hexodus

関連する問題