前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【宝塔服务器】宝塔通过composer安装TP依赖

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

作者头像
德宏大魔王
发布2023-08-08 15:22:54
3930
发布2023-08-08 15:22:54
举报
文章被收录于专栏:cloud stdiocloud stdio

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

报错1:没有安装fileinfo扩展

代码语言:javascript
复制
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

在这里插入图片描述
在这里插入图片描述

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

成功安装

在这里插入图片描述
在这里插入图片描述
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2023-06-19,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档