php json追加500错误,在composer.json中添加了一个git地址;composer update 报错
在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:
A typo in the package name
The package is not 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.
項目的composer.json如下
{
"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:
A typo in the package name
The package is not 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.
項目的composer.json如下
{
"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.json,composer是不能識別這個倉庫的。
補答:
master分支默認會被解析成dev-master這個版本號,所以你直接用master做版本號是不行的。另外,最好通過tag明確一個版本并使用。
本文原創發布php中文網,轉載請注明出處,感謝您的尊重!
總結
以上是生活随笔為你收集整理的php json追加500错误,在composer.json中添加了一个git地址;composer update 报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: matlab小波脊线,小波脊线提取,模极
- 下一篇: 苹果电脑充电器充平板(苹果平板充电器可以