gpt4 book ai didi

php - Laravel 安装 "Your requirements could not be resolved to an installable set of packages."

转载 作者:行者123 更新时间:2023-12-04 18:47:11 27 4
gpt4 key购买 nike

我正在尝试创建一个 laravel 项目。我是 laravel 和 Composer 的新手。我的 composer.json 文件读取

{
"name": "jrodriguez/sapme",
"description": "Sap Replacement Server.",
"license": "proprietary",
"authors": [
{
"name": "myname",
"email": "myemai"
}
],
"require": {
"laravel/framework": "~5.0"
}
}

当我运行 Composer 诊断时,它说一切正常。

当我运行 composer create-project laravel/laravel --prefer-dist 时,我收到一个错误,我的要求无法解决。

最佳答案

尝试

composer dump-autoload

composer install


如果这没有帮助,您使用的是哪个版本的 PHP?
Laravel 5.0 的要求是:
PHP >= 5.4, PHP < 7
Mcrypt PHP Extension
OpenSSL PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension

关于php - Laravel 安装 "Your requirements could not be resolved to an installable set of packages.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29634338/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com