在composer.json中添加了一个git地址;composer update 报错
Jul 06, 2016 pm 01:52 PM
在composer.json中添加了一个git地址;composer update 报错,不知道是什么原因导致的,如图:
问题补充:
<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:> for more details. </https:></code>
登录后复制登录后复制Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
项目的composer.json如下
{
"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>
追问:
已将master 改成 dev-master 报错信息如下:
另外,怎么使用tag?
回复内容:
在composer.json中添加了一个git地址;composer update 报错,不知道是什么原因导致的,如图:
问题补充:
<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:> for more details. </https:></code>
登录后复制登录后复制Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
项目的composer.json如下
{
"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>
追问:
已将master 改成 dev-master 报错信息如下:
另外,怎么使用tag?
你要确定你的git
仓库是一个正确的composer
项目,这里已经写明了,你定义的仓库里并没有定义composer
所必须的composer.json
,composer
是不能识别这个仓库的。
补答:master
分支默认会被解析成dev-master
这个版本号,所以你直接用master
做版本号是不行的。另外,最好通过tag
明确一个版本并使用。

热门文章

热门文章

热门文章标签

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

适用于 Ubuntu 和 Debian 的 PHP 8.4 安装和升级指南

如何设置 Visual Studio Code (VS Code) 进行 PHP 开发
