安装
https://pkg.phpcomposer.com/#how-to-install-composer
然后
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:
The Windows OneDrive folder is not supported on PHP versions below 7.2.23 and 7.3.10.
Upgrade your PHP (7.3.9) to use this location with Composer.
看样子是OneDrive 影响了他。。我们卸载OneDrive
https://www.cnblogs.com/lsgxeva/p/11597176.html
然后重启电脑再试