当前位置:  开发笔记 > 编程语言 > 正文

在composer.json中添加了一个git地址;composer update 报错

在composer.json中添加了一个git地址;composerupdate报错,不知道是什么原因导致的,如图:问题补充:{代码}Therequestedpackagezcbobaecouldnotbefoundinanyversion,theremaybeatypoi

在composer.json中添加了一个git地址;composer update 报错,不知道是什么原因导致的,如图:

问题补充:

在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 not be found in any version, there may be a typo in the package name.

    Potential causes:

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

    },

    ......
    

    追问:
    已将master 改成 dev-master 报错信息如下:
    另外,怎么使用tag?

    回复内容:

    在composer.json中添加了一个git地址;composer update 报错,不知道是什么原因导致的,如图:

    问题补充:

    在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 not be found in any version, there may be a typo in the package name.

    Potential causes:

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

    },

    ......
    

    追问:
    已将master 改成 dev-master 报错信息如下:
    另外,怎么使用tag?

    你要确定你的git仓库是一个正确的composer项目,这里已经写明了,你定义的仓库里并没有定义composer所必须的composer.jsoncomposer是不能识别这个仓库的。

    补答:
    master分支默认会被解析成dev-master这个版本号,所以你直接用master做版本号是不行的。另外,最好通过tag明确一个版本并使用。

    推荐阅读
    mylvfamily
    这个屌丝很懒,什么也没留下!
    DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
    Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有