Added a git address in composer. json. the error message "composerupdate" is returned.

Source: Internet
Author: User
A git address is added to composer. json. the error message "composerupdate" is unknown. The problem is supplemented by: {code...} Therequestedpackagezcbobaecouldnotbefoundinanyversion, theremaybeatypoi...

A git address is added to composer. json. the error message "composer update" does not know why,

Question added:

Add composer. json in the BAE package and then re-composer update Your requirements cocould not be resolved to an installable set of packages. Problem 1
    • The requested package zcbo/bae cocould 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 
          

      Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

      The project composer. json is as follows:
      {

    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {

    "php": ">=5.5.9","zcbo/bae":"master","laravel/framework": "5.2.*"

    },
    "require-dev": {

    "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.*"

    },

    ......

    Follow-up:
    The following error message is returned when the master is changed to dev-master:
    In addition, how do I use tags?

    Reply content:

    A git address is added to composer. json. the error message "composer update" does not know why,

    Question added:

    Add composer. json in the BAE package and then re-composer update Your requirements cocould not be resolved to an installable set of packages. Problem 1
    • The requested package zcbo/bae cocould 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 
           

      Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

      The project composer. json is as follows:
      {

    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {

    "php": ">=5.5.9","zcbo/bae":"master","laravel/framework": "5.2.*"

    },
    "require-dev": {

    "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.*"

    },

    ......

    Follow-up:
    The following error message is returned when the master is changed to dev-master:
    In addition, how do I use tags?

    Are you sure you havegitThe repository is correctcomposerProject, which is not defined in your RepositorycomposerRequiredcomposer.json,composerThe repository cannot be identified.

    Answer:
    masterThe branch is parseddev-masterThis version number, so you can directly usemasterThe version number cannot be used. In addition, it is best to passtagDefine and use a specific version.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.