[英]Failing to get package via composer require
I want to user this package hslavich/simplesamlphp-bundle in my project which has dependency on simplesamlphp/simplesamlphp dev-master我想在我的项目中使用这个包hslavich/simplesamlphp-bundle ,它依赖于simplesamlphp/simplesamlphp dev-master
If I try to add dependency like this:如果我尝试添加这样的依赖项:
composer require hslavich/simplesamlphp-bundle dev-master
I get the following error:我收到以下错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for hslavich/simplesamlphp-bundle dev-master -> satisfiable by hslavich/simplesamlphp-bundle[dev-master].
- hslavich/simplesamlphp-bundle dev-master requires simplesamlphp/simplesamlphp dev-master -> no matching package found.
If I git clone
the hslavich/SimplesamlphpBundle and use composer update
simplesamlphp package is downloaded successfully.如果我git clone
hslavich/SimplesamlphpBundle并使用composer update
simplesamlphp 包成功下载。
What am I doing wrong?我究竟做错了什么?
Add "minimum-stability": "dev"
to composer.json.将"minimum-stability": "dev"
到 composer.json。 The usage of dev package versions imples that you need to have it.开发包版本的使用意味着您需要拥有它。 Use用
"minimum-stability": "dev",
"prefer-stable" : true
if you don't want it to affect other packages without strict version constraints.如果您不希望它影响没有严格版本限制的其他软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.