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

我正在尝试在全新安装时为 laravel 安装 Argon 模板,除了用有效的数据库信息填写 .env此链接中氩文档中的官方文档:https ://argon-dashboard-laravel.creative-tim.com/docs/getting-started/quick-start.html


指令是


Cd to your Laravel app

Install 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-autoload

Run php artisan migrate --seed to create basic users table

并且在运行时composer require laravel-frontend-presets/argon


我收到错误


λ  composer require laravel-frontend-presets/argon

Using version ^1.0 for laravel-frontend-presets/argon

./composer.json has been updated

Loading composer repositories with package information

Updating 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.


为什么是这样?


烙印99
浏览 79回答 1
1回答

弑天下

我认为你需要更新你的 Laravel 版本您可以使用此https://laravel.com/docs/7.x/upgrade尝试升级它或全新安装您的 laravel 框架
打开App,查看更多内容
随时随地看视频慕课网APP