|
composer require第三方包的时候,发生如下错误
- D:\study\shop>composer require laravel/jetstream
- Using version ^1.6 for laravel/jetstream
- ./composer.json has been updated
- Loading composer repositories with package information
- Updating dependencies (including require-dev)
- Your requirements could not be resolved to an installable set of packages.
-
- Problem 1
- - laravel/horizon v5.4.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- - laravel/horizon v5.4.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- - laravel/horizon v5.4.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- - Installation request for laravel/horizon (locked at v5.4.0, required as ^5.4) -> satisfiable by laravel/horizon[v5.4.0].
-
- 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` inside terminal to see which files are used by PHP in CLI mode.
-
- Installation failed, reverting ./composer.json to its original content.
复制代码
解决方法
带上引包的时候带上--ignore-platform-reqs
- composer require laravel/jetstream --ignore-platform-reqs
复制代码 |
|
关于我们