Home > Backend Development > PHP Tutorial > Added a git address to composer.json; composer update reported an error

Added a git address to composer.json; composer update reported an error

WBOY
Release: 2016-07-06 13:52:27
Original
2743 people have browsed it

Added a git address in composer.json; composer update reported an error, I don’t know what caused it, as shown in the picture:

Added a git address to composer.json; composer update reported an error

Added a git address to composer.json; composer update reported an error

Supplementary question:

<code>在BAE包里面添加composer.json 后 重新composer update

    
    Your requirements could not be resolved to an installable set of packages.

  Problem 1</code>
Copy after login
Copy after login
    • 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>
      Copy after login
      Copy after login

      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>
    Copy after login
    Copy after login

    },
    "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>
    Copy after login
    Copy after login

    },

    <code>......
    </code>
    Copy after login
    Copy after login

    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 to composer.json; composer update reported an error

    Reply content:

    Added a git address in composer.json; composer update reported an error, I don’t know what caused it, as shown in the picture:

    Added a git address to composer.json; composer update reported an error

    Added a git address to composer.json; composer update reported an error

    Supplementary question:

    <code>在BAE包里面添加composer.json 后 重新composer update
    
        
        Your requirements could not be resolved to an installable set of packages.
    
      Problem 1</code>
    Copy after login
    Copy after login
    • 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>
      Copy after login
      Copy after login

      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>
    Copy after login
    Copy after login

    },
    "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>
    Copy after login
    Copy after login

    },

    <code>......
    </code>
    Copy after login
    Copy after login

    Following question:
    Master has been changed to dev-master and the error message is as follows:
    In addition, how to use tag?
    Added a git address to composer.json; composer update reported an error

    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.

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template