简体   繁体   中英

How to change php version in composer dependencies

当我尝试在 mamp 上运行服务器时,我收到错误消息:“Composer 在您的平台中检测到问题:您的 Composer 依赖项需要 PHP 版本 >= 8.1.0”。您正在运行 8.0.8”。

You don't change package dependencies, that's the responsibility of the package maintainer. Either see if there is another version available that requires the same or lower version of PHP than you have installed in your environment or install the required PHP version.

It appears that MAMP Pro has support for PHP 8.1 although this question seems to have a solution without requiring the Pro version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM