编辑:解决了,我必须使用" dev-master"而不是" master"或" dev"。
也许这对你来说似乎很奇怪......但是我试图使用全局作曲二进制文件在本地安装作曲家。
我试图写下这样的内容:
composer require composer/composer
但这不起作用,它告诉我需要版本。然后我尝试了以下变化:
composer require composer/composer=*
composer require composer/composer=master
composer require composer/composer=dev
并且......没有,我收到以下错误消息:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package composer/composer could not be found in any version, there may be a typo in the package name.
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://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
任何人都知道是否可以在&#34;清洁&#34;办法? (允许以下几点):
答案 0 :(得分:1)
不明白你为什么要这样,但我认为#EDIT:看到你为什么需要这个。确定。
"repositories": [
{
"type": "vcs",
"url": "https://github.com/composer/composer.git"
}
],
"require": {
"composer/composer": "dev-master#775f6cd5c633facf2e7b99611fdcaa900b58ddb7"
}
会起作用。
您可以在此处查看与不同版本对应的提交哈希:https://github.com/composer/composer/releases
答案 1 :(得分:1)
好的,我犯了一个愚蠢的错误。我必须使用“dev-master”,而不是“dev”或“master”。
抱歉这个愚蠢的问题。
答案 2 :(得分:-3)