执行composer install 的时候报错了,有的组件没安装:
Problem 1
- php-amqplib/php-amqplib is locked to version v2.12.3 and an update of this package was not requested.
- php-amqplib/php-amqplib v2.12.3 requires ext-sockets * -> it is missing from your system. Install or enable PHP's sockets extension.
Problem 2
- php-amqplib/php-amqplib v2.12.3 requires ext-sockets * -> it is missing from your system. Install or enable PHP's sockets extension.
- vladimir-yuldashev/laravel-queue-rabbitmq v10.2.3 requires php-amqplib/php-amqplib ^2.11 -> satisfiable by php-amqplib/php-amqplib[v2.12.3].
- vladimir-yuldashev/laravel-queue-rabbitmq is locked to version v10.2.3 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
- D:\phpstudy_pro\Extensions\php\php7.4.3nts\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-sockets --ignore-platform-req=ext-sockets` to temporarily ignore these required extensions.
直接phpstudyan安装一下组件就行了。
记着重启一下环境。(以你环境变量设置的PHP版本为主,怎么设置环境变量就不用出教程了吧。)
推荐