Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法使用内建php和composer安装插件 #372

Open
FishZe opened this issue Oct 23, 2023 · 1 comment
Open

无法使用内建php和composer安装插件 #372

FishZe opened this issue Oct 23, 2023 · 1 comment
Labels
bug 意外行为或意外问题

Comments

@FishZe
Copy link
Contributor

FishZe commented Oct 23, 2023

受影响版本

最新版

描述

无法使用内建php和composer安装插件
CWN$(7K9 YT_AEC8JJBB0
使用框架内建的phpcomposer时,安装插件时会使用系统phpcomposer,导致安装错误

已测试 使用内建phpcomposer 或 使用系统php和内建composer 都会复现此错误

测试系统:ubuntu 22.04 & macos 13

已使用一键脚本安装测试最新版框架

复现步骤

使用内建phpcomposer,安装任意插件即可复现

解决方案

No response

附加信息

No response

@FishZe FishZe added the bug 意外行为或意外问题 label Oct 23, 2023
@crazywhalecc
Copy link
Member

缓解办法:将保存内建 PHP 的目录加入 PATH。

临时解决办法:将内建 PHP 文件移动到系统 bin 目录,将 composer.phar 移动到系统 bin 目录并更名为 composer

永久解决办法:将此处代码更改为 runtime/composerruntime/php runtime/composer.phar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 意外行为或意外问题
Projects
None yet
Development

No branches or pull requests

2 participants