Can't install package with composer
schmunk42 opened this issue · 4 comments
What steps will reproduce the problem?
composer require "yiisoft/yii-core:@dev"
What is the expected result?
Installation of the extension
What do you get instead?
composer require "yiisoft/yii-core:@dev"
1/2: http://repo.packagist.org/p/provider-latest$f7aa0653a8e0ebdb97c7f3aa492d2bb27e01880f8205820f70c6059ea7c6e4e1.json
2/2: http://repo.packagist.org/p/provider-2018-10$955db3117547a7fd73c6d39e731af0ec3c783a7255d65781329c11b5814fdcc1.json
Finished: success: 2, skipped: 0, failure: 0, total: 2
1/2: http://repo.packagist.org/p/provider-latest$f7aa0653a8e0ebdb97c7f3aa492d2bb27e01880f8205820f70c6059ea7c6e4e1.json
2/2: http://repo.packagist.org/p/provider-2018-10$955db3117547a7fd73c6d39e731af0ec3c783a7255d65781329c11b5814fdcc1.json
Finished: success: 2, skipped: 0, failure: 0, total: 2
1/2: http://repo.packagist.org/p/provider-latest$f7aa0653a8e0ebdb97c7f3aa492d2bb27e01880f8205820f70c6059ea7c6e4e1.json
2/2: http://repo.packagist.org/p/provider-2018-10$955db3117547a7fd73c6d39e731af0ec3c783a7255d65781329c11b5814fdcc1.json
Finished: success: 2, skipped: 0, failure: 0, total: 2
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii-core dev-sol-locale requires psr/log-implementation ^1.0 -> no matching package found.
- yiisoft/yii-core 3.0.x-dev requires psr/log-implementation ^1.0 -> no matching package found.
- yiisoft/yii-core dev-master requires psr/log-implementation ^1.0 -> no matching package found.
- yiisoft/yii-core dev-i18n-tests-and-fixes requires psr/log-implementation ^1.0 -> no matching package found.
- yiisoft/yii-core dev-bcp-47-locale requires psr/log-implementation ^1.0 -> no matching package found.
- Installation request for yiisoft/yii-core @dev -> satisfiable by yiisoft/yii-core[dev-bcp-47-locale, dev-i18n-tests-and-fixes, dev-master, 3.0.x-dev, dev-sol-locale].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, deleting ./composer.json.
Additional info
Q | A |
---|---|
Yii version | 3.x |
PHP version | 7.2 |
Operating system | Debian (Docker) |
Related yiisoft/yii-project-template#16
I wonder why I can install yii-web-base
?!
yiisoft/yii-core 3.0.x-dev requires psr/log-implementation
yii-core requires psr log, cache and di implementations. It can not be installed alone.
So why are they in require-dev
? https://github.com/yiisoft/yii-core/blob/master/composer.json#L74
How to proceed with this regarding yii-console
in project-template https://github.com/yiisoft/yii-project-template/pull/16/files#diff-b5d0ee8c97c7abd7e3fa29b9a27d1780R62 - do we manually pick the required packages, because we do not want to depend on specific ones from yii?
So why are they in
require-dev
? https://github.com/yiisoft/yii-core/blob/master/composer.json#L74
To allow composer update
in the package and run tests.
because we do not want to depend on specific ones from yii?
yes
Cool, might be something for the docs, but closing for now.