为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我在新的 laravel 安装上安装 argon 时收到错误消息?

为什么我在新的 laravel 安装上安装 argon 时收到错误消息?

PHP
烙印99 2022-10-22 15:07:10
我正在尝试在全新安装时为 laravel 安装 Argon 模板,除了用有效的数据库信息填写 .env此链接中氩文档中的官方文档:https ://argon-dashboard-laravel.creative-tim.com/docs/getting-started/quick-start.html指令是Cd to your Laravel appInstall this preset via composer require laravel-frontend-presets/argon. No need to register the service provider. Laravel 5.5 & up can auto detect the package.Run php artisan preset argon command to install the Argon preset. This will install all the necessary assets and also the custom auth views, it will also add the auth route in routes/web.php (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)In your terminal run composer dump-autoloadRun php artisan migrate --seed to create basic users table并且在运行时composer require laravel-frontend-presets/argon我收到错误λ  composer require laravel-frontend-presets/argonUsing version ^1.0 for laravel-frontend-presets/argon./composer.json has been updatedLoading composer repositories with package informationUpdating dependencies (including require-dev)Your requirements could not be resolved to an installable set of packages.  Problem 1    - laravel-frontend-presets/argon 1.0.1 requires laravel/framework 5.5 -> satisfiable by laravel/framework[v5.5.0] but these conflict with your requirements or minimum-stability.    - laravel-frontend-presets/argon 1.0.0 requires laravel/framework 5.5.* -> satisfiable by laravel/framework[5.5.x-dev].    - Installation request for laravel-frontend-presets/argon ^1.0 -> satisfiable by laravel-frontend-presets/argon[1.0.0, 1.0.1, 1.0.11, 1.0.12, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, v1.0.10].    - Installation request for laravel/framework ^7.0 -> satisfiable by laravel/framework[7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.0.3, v7.0.4, v7.0.5, v7.0.6, v7.0.7].Installation failed, reverting ./composer.json to its original content.为什么是这样?
查看完整描述

1 回答

?
弑天下

TA贡献1818条经验 获得超8个赞

我认为你需要更新你的 Laravel 版本

您可以使用此https://laravel.com/docs/7.x/upgrade尝试升级它或全新安装您的 laravel 框架


查看完整回答
反对 回复 2022-10-22
  • 1 回答
  • 0 关注
  • 75 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信