问题根源
composer update -vvv
```
报错提示需要yaml扩展
## 解决办法
给php加上 yaml扩展,开发所用的系统 mac,php存在两个版本,brew 安装的php@7.4以及系统自带的php 7.3.11.
## 整个过程
1. 查看PHP版本
```shell
admin@macbook ~ % brew info php@7.4
php@7.4: stable 7.4.21 (bottled) [keg-only]
General-purpose scripting language
https://www.php.net/
/usr/local/Cellar/php@7.4/7.4.21 (497 files, 72.4MB)
Poured from bottle on 2021-07-08 at 19:03:48
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/php@7.4.rb
License: PHP-3.01
==> Dependencies
Build: httpd ✘, pkg-config ✘
Required: apr ✔, apr-util ✔, argon2 ✔, aspell ✔, autoconf ✔, curl ✔, freetds ✔, gd ✔, gettext ✔, glib ✔, gmp ✔, icu4c ✔, krb5 ✔, libffi ✔, libpq ✔, libsodium ✔, libzip ✔, oniguruma ✔, openldap ✔, openssl@1.1 ✔, pcre2 ✔, sqlite ✔, tidy-html5 ✔, unixodbc ✔
==> Caveats
To enable PHP in Apache add the following to httpd.conf and restart Apach