Added a git address in composer.json; composer update reported an error, I don’t know what caused it, as shown in the picture:
Supplementary question:
<code>在BAE包里面添加composer.json 后 重新composer update Your requirements could not be resolved to an installable set of packages. Problem 1</code>
The requested package zcbo/bae 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
<code> see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details. </code>
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
The composer.json of the project is as follows
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license" : "MIT",
"type": "project",
"require": {
<code>"php": ">=5.5.9", "zcbo/bae":"master", "laravel/framework": "5.2.*"</code>
},
"require-dev": {
<code>"fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~4.0", "symfony/css-selector": "2.8.*|3.0.*", "symfony/dom-crawler": "2.8.*|3.0.*"</code>
},
<code>...... </code>
Following question:
The master has been changed to dev-master and the error message is as follows:
In addition, how to use tag?
Added a git address in composer.json; composer update reported an error, I don’t know what caused it, as shown in the picture:
Supplementary question:
<code>在BAE包里面添加composer.json 后 重新composer update Your requirements could not be resolved to an installable set of packages. Problem 1</code>
The requested package zcbo/bae 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
<code> see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details. </code>
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
The composer.json of the project is as follows
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license" : "MIT",
"type": "project",
"require": {
<code>"php": ">=5.5.9", "zcbo/bae":"master", "laravel/framework": "5.2.*"</code>
},
"require-dev": {
<code>"fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~4.0", "symfony/css-selector": "2.8.*|3.0.*", "symfony/dom-crawler": "2.8.*|3.0.*"</code>
},
<code>...... </code>
Following question:
Master has been changed to dev-master and the error message is as follows:
In addition, how to use tag?
You need to make sure that your git
warehouse is a correct composer
project. It has been stated here that the warehouse you define does not have the necessary composer
to define composer.json
. composer
cannot Identify this warehouse.
Answer: The master
branch will be parsed into the version number dev-master
by default, so you cannot use master
directly as the version number. In addition, it is best to specify a version through tag
and use it.