如何解决请帮助我解决由 PHP 8.0.2 引起的 Sage 安装错误
所以我正在尝试安装一个基本的 Sage 主题,但我不断收到此错误:
click here for the error or read below
PHP 8.0.2 导致了一些问题,我一直在寻找解决方案...
有人可以给我一些关于我应该做什么的提示吗?
错误:
$ composer create-project roots/sage my-first-sage-theme
Creating a "roots/sage" project at "./my-first-sage-theme"
Installing roots/sage (9.0.10)
- Installing roots/sage (9.0.10): Extracting archive
Created project in D:\FUN\My-First-Sage-Website\wp-content\themes\my-first-sage-theme
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- illuminate/config is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/config v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 2
- illuminate/container is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/container v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 3
- illuminate/contracts is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/contracts v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 4
- illuminate/events is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/events v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 5
- illuminate/filesystem is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/filesystem v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 6
- illuminate/support is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/support v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 7
- illuminate/view is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/view v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 8
- illuminate/console is locked to version v5.6.39 and an update of this package was not requested.
- illuminate/console v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 9
- paragonie/random_compat is locked to version v9.99.99 and an update of this package was not requested.
- paragonie/random_compat v9.99.99 requires PHP ^7 -> your PHP version (8.0.2) does not satisfy that requirement.
Problem 10
- illuminate/config v5.6.39 requires PHP ^7.1.3 -> your PHP version (8.0.2) does not satisfy that requirement.
- roots/sage-lib 9.0.9 requires illuminate/config ~5.6 -> satisfiable by illuminate/config[v5.6.39].
- roots/sage-lib is locked to version 9.0.9 and an update of this package was not requested.
解决方法
它可能不适用于 PHP8。但是,如果您想尝试,请在安装时使用标志“--ignore-platform-reqs”。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。