Added a git address in Composer.json; composer Update error

Source: Internet
Author: User

Add a git address in Composer.json, composer update error, do not know what caused the cause,

Supplementary questions:

在BAE包里面添加composer.json 后 重新composer update        Your requirements could not be resolved to an installable set of packages.  Problem 1
    • The requested package zcbo/bae could is found in any version and there May is a typo in the package name.

    Potential causes:

      • A typo in the package name

      • The package isn't available in a stable-enough version according to your minimum-stability setting

          see 
            
             
              
              for more details.
            
             

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

        The Composer.json of the project are 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.*"

    },

    ......

    Ask:
    Changed master to dev-master error message as follows:
    In addition, how to use tag?

    Reply content:

    Add a git address in Composer.json, composer update error, do not know what caused the cause,

    Supplementary questions:

    在BAE包里面添加composer.json 后 重新composer update        Your requirements could not be resolved to an installable set of packages.  Problem 1
    • The requested package zcbo/bae could is found in any version and there May is a typo in the package name.

    Potential causes:

      • A typo in the package name

      • The package isn't available in a stable-enough version according to your minimum-stability setting

          see 
            
             
              
              for more details.
            
             

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

        The Composer.json of the project are 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.*"

    },

    ......

    Ask:
    Changed master to dev-master error message as follows:
    In addition, how to use tag?

    You have to make sure that your git warehouse is the right one, and it composer has been stated that the warehouse you defined is not defined and composer composer.json composer is not recognized.

    Supplementary answer:
    masterThe branch will be parsed into dev-master this version number by default, so master it is not possible to use the version number directly. In addition, it is best to make tag a version explicit and use it.

  • Related Article

    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.