更改作曲家全局路径 (Windows)
Composer 默认为全局包使用 %APPDATA%Composer
目录.
所以我需要将 %APPDATA%Composervendorin
路径添加到我的用户 PATH 环境变量中.
Composer uses %APPDATA%Composer
directory by default for global packages.
So I need to add %APPDATA%Composervendorin
path to my user PATH environment variable.
我可以将安装目录更改为 C:phpcomposer
之类的内容吗?我该怎么做?
Can I change installation directory to something like C:phpcomposer
? How can I do it?
推荐答案
我在源代码中找到了答案:https://github.com/composer/composer/blob/master/src/Composer/Factory.php#L45
I found an answer in the source code: https://github.com/composer/composer/blob/master/src/Composer/Factory.php#L45
所以环境变量COMPOSER_HOME
必须定义为C:phpcomposer
.
So environment variable COMPOSER_HOME
must be defined as C:phpcomposer
.
相关文章