本文作者:DurkBlue

Composer 引入依赖时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-sodium` to temporarily ignore these required extensions推荐

DurkBlue 04-25 70702
Composer 引入依赖时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-sodium` to temporarily ignore these required extensions摘要:         1.错误截图:      ...

        1.错误截图:

        Composer 引入依赖时You can also run `php --ini` in a terminal to see which files are used by PHP CLI mode. Alternatively, you with `--ignore-platform-req=ext-sodium` temporarily ignore these required extensions  第1张


        

2.删除 composer.lock

3.执行命令

composer clearcache

清除缓存

4.更新依赖

composer update

(重新生成 composer.lock

5.可以执行需要的命令了比如引入你需要的依赖

如果问题依旧,那就只能归咎于当前的php环境版本不适于引入依赖的版本。但又确实需要这个版本的依赖,可以执行以下命令:

composer require tencentcloud/faceid --ignore-platform-reqs


--ignore-platform-reqs 表示要求composer在引入该依赖时忽略检查版本

    


这篇文章由DurkBlue发布,转载请注明来处
文章投稿或转载声明

来源:DurkBlue版权归原作者所有,转载请保留出处。本站文章发布于 04-25
温馨提示:文章内容系作者个人观点,不代表DurkBlue博客对其观点赞同或支持。

赞(0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

阅读
分享