[英]Laravel 5 - cannot install laracasts/generators
我正在尝试通过 Composer 安装Laravel 5 Extended Generators ,使用以下命令: composer require laracasts/generators --dev
。
我收到此错误消息:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package way/generators dev-feature/laravel-5-stable could not be found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setti ng
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
我使用的 Laravel 版本是 5.2。 这里可能有什么问题?
我最终在这里找到了解决此问题的方法。 基本上,composer.json 应该是这样的:
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"phpspec/phpspec": "~2.1",
"xethron/migrations-generator": "dev-l5",
"way/generators": "dev-feature/laravel-five-stable"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/jamisonvalenta/Laravel-4-Generators.git"
}
],
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.