composer强制安装插件

composer require第三方包的时候,发生某些错误,可以试用强制安装

带上引包的时候带上 --ignore-platform-reqs

composer require qiniu/php-sdk:^7.2  --ignore-platform-reqs

参数说明

--ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-*) and force the installation even if the local machine does not fulfill these. See also the platform config option

忽略所有平台要求(php,hhvm,lib- *和ext- *)并强制安装,即使本地计算机不满足这些要求

posted @ 2023-06-21 14:26  zhang_you_wu  阅读(367)  评论(0)    收藏  举报