0


【宝塔服务器】宝塔通过composer安装TP依赖

屡屡碰壁,安装一个项目,发现没有依赖,需要使用composer安装,没接触过,找了网上也没攻略,自己弄了后有以下问题,经过调整解决了:

报错1:没有安装fileinfo扩展

Loading composer repositories withpackageinformationUpdating dependencies
Your requirements could not be resolved toan installable set of packages.

  Problem1-Root composer.json requiresalipaysdk/easysdk 2.0-> satisfiable by alipaysdk/easysdk[2.0.0].- alipaysdk/easysdk 2.0.0requiresext-fileinfo *-> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem2- topthink/think-filesystem[v1.0.0,..., v1.0.3] require league/flysystem ^1.1.4-> satisfiable by league/flysystem[1.1.4,...,1.1.10].- league/flysystem[1.1.0,...,1.1.10] require ext-fileinfo *-> it is missing from your system. Install or enable PHP's fileinfo extension.-Root composer.json requirestopthink/think-filesystem ^1.0-> satisfiable by topthink/think-filesystem[v1.0.0, v1.0.1, v1.0.2, v1.0.3].To enable extensions, verify that they are enabled in your .ini files:-/www/server/php/82/etc/php.ini
You can also run `php --ini` in a terminal tosee which files are used by PHP in CLI mode.
Alternatively, you can run Composerwith `--ignore-platform-req=ext-fileinfo` totemporarily ignore these required extensions.

Use the option --with-all-dependencies (-W)toallow upgrades, downgrades and removals for packages currently locked tospecific versions.

2、删除禁用函数puv

在这里插入图片描述

3.其他报错信息,请自己翻译,整改好重新运行即可,我这里没留存其他报错信息了

成功安装
在这里插入图片描述

标签: composer java python

本文转载自: https://blog.csdn.net/qq_35230125/article/details/131294447
版权归原作者 德宏大魔王(AI自动回关) 所有, 如有侵权,请联系我们删除。

“【宝塔服务器】宝塔通过composer安装TP依赖”的评论:

还没有评论