当我想要我的项目时,会出现以下错误:
在任何版本中都找不到请求的包mvc-PHP / framework,包名中可能有拼写错误.
“mvc-PHP / framework”是一个git文件夹.
{ "name": "mvc-PHP/app","repositories": [ { "type": "path","url": "/Users/youri/Documents/Github/framework" } ],"require": { "PHP": ">=7.0","mvc-PHP/framework": "master" },"autoload": { "psr-4": { "App\\": "app/" } } }
项目我想要求:
{ "name": "mvc-PHP/framework","description": "PHP MVC framework","autoload": { "psr-4": { "Mvc\\" : "src/" } },"require": { "PHP": ">=7.0" } }
您必须要求branchName @ dev,而不仅仅是分支名称
原文链接:https://www.f2er.com/php/134973.htmlhttps://getcomposer.org/doc/articles/versions.md#branches
{ "name": "mvc-PHP/app","mvc-PHP/framework": "master@dev" },"autoload": { "psr-4": { "App\\": "app/" } } }