Php Laravel 5-无法安装Laracast/发电机
我正试图通过Composer安装,使用以下命令:Php Laravel 5-无法安装Laracast/发电机,php,laravel,laravel-5,composer-php,Php,Laravel,Laravel 5,Composer Php,我正试图通过Composer安装,使用以下命令:Composer需要laracast/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.
Composer需要laracast/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.
无法将您的需求解析为一组可安装的软件包。
问题1
-找不到请求的包方式/generators dev feature/laravel-5-stable。
潜在原因:
-软件包名称中的输入错误
-根据您的最低稳定性设置,该软件包没有足够稳定的版本
有关更多详细信息,请参阅。
阅读了解更多常见问题。
安装失败,将./composer.json还原为其原始内容。
我使用的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"
}
],