欢迎来到站长天空!

其它服务器

当前位置: 主页 > 服务器 > 其它服务器

宝塔通过composer安装TP依赖的详细教程(宝塔服务器)

时间:2025-12-10 23:30:04|栏目:其它服务器|点击:

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

报错1:没有安装fileinfo扩展

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires alipaysdk/easysdk 2.0 -> satisfiable by alipaysdk/easysdk[2.0.0].
    - alipaysdk/easysdk 2.0.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 2
    - 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 requires topthink/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 to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.

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

2、删除禁用函数puv

宝塔通过composer安装TP依赖的详细教程(宝塔服务器)

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

成功安装

宝塔通过composer安装TP依赖的详细教程(宝塔服务器)

上一篇:docker网卡的IP地址修改方法总结

栏    目:其它服务器

下一篇:Docker容器连接外部Mysql的几种方案

本文标题:宝塔通过composer安装TP依赖的详细教程(宝塔服务器)

本文地址:https://zz.feitang.co/server/29958.html

广告投放 | 联系我们 | 版权申明

申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:257218569 | 邮箱:257218569@qq.com

Copyright © 2018-2025 站长天空 版权所有 Powered by EyouCms冀ICP备14023439号