0

所以我正在尝试安装一个基本的 Sage 主题,但我不断收到此错误:

单击此处查看错误或阅读以下内容

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.

4

1 回答 1

3

它可能不适用于 PHP8。但是,如果您想尝试,请在安装时使用标志“--ignore-platform-reqs”。

于 2021-07-30T17:08:48.040 回答