我安装完laravel后要安装一个laravelcollective/remote,为什么要把所有的都update
我已经安装完laravel了,只是需要安装一个laravelcollective/remote, 使用composer:
我看到它又去下载了一套这个,是为什么?有没有只下载对应package而不需要update所有的办法?
[vagrant@localhost masterdev]$ composer update laravelcollective/remote --no-dev -vvv
Reading ./composer.json
Loading config file /home/vagrant/.composer/config.json
Loading config file /home/vagrant/.composer/auth.json
Loading config file ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Failed to initialize global composer: Composer could not find the config file: /home/vagrant/.composer/composer.json
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
Loading composer repositories with package information
Downloading http://pkg.phpcomposer.com/repo/packagist/packages.json
Writing /home/vagrant/.composer/cache/repo/http---pkg.phpcomposer.com-repo-packagist/packages.json into cache
Updating dependencies
Reading ./composer.lock
Downloading http://pkg.phpcomposer.com/repo/packagist/p/jakub-onderka/php-console-color.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/vlucas/phpdotenv.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/var-dumper.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/translation.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/translation.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/translation.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/security-core.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/routing.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/process.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/http-foundation.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/symfony/event-dispatcher.json
Downloading http://pkg.phpcomposer.com/repo/packagist/p/psr/log.json
。。。
我看到它又去下载了一套这个,是为什么?有没有只下载对应package而不需要update所有的办法?
1 个回复
FiveSay - 成武
赞同来自:
可以通过 --no-update 参数:禁用依赖关系的自动更新。