Answer the question
In order to leave comments, you need to log in
Can't install composer on windows?
Hello! Can't install composer on windows. Tried installing via .exe installer and via .phar in both cases, installation just hangs. Most likely the problem appeared after I could not install phpunit on my computer and used the instructions . Which said that you need to enter the command:
unalias $(alias | grep winpty | cut -d"=" -f1 | cut -d" " -f2)
Answer the question
In order to leave comments, you need to log in
why would you want to install something there? it's just a phar file
copied and
then you run everything
like
"z:\usr\local\php5\php.exe" "z:\composer.phar" update
Just download composer.phar
and save it somewhere. Then, in any directory accessible via the PATH environment variable, create a file composer.bat
:
@echo off
x:\path\to\php.exe -c x:\path\to\php.ini -f x:\path\to\composer.phar -- %*
php.ini
for Composer. Main differences:memory_limit = 1024M ; Возможно даже 2048M если проекты имеют много зависимостей
; также необходимо отключить XDebug
composer
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question