Roots Discourse

Errors when trying to install sage

I keep getting these errors when I try to run composer create-project roots/sage. Any tips on how to fix it? Very new to this.

I get a similar error when I run composer update.

You are using composer on PHP 8, but those sage theme PHP (runtime) dependencies require PHP 7.x, hence composer will fail.

ok great, thanks. So would I run composer config platform.php 7.0 ? Very new to this so I don’t want to jack anything up :stuck_out_tongue:

Yes, this should work. Though you want to achieve version-pariety when developing, like using a VM or (Docker) container with the same PHP version as on the production server.