php - composer not working in cygwin terminal -


when run following command in cygwin terminal

$ php -r "readfile('https://getcomposer.org/installer');" | php 

!/usr/bin/env php

some settings on machine make composer unable work properly. make sure fix issues listed below , run script again:

the json extension missing. install or recompile php without --disable-json

the phar extension missing. install or recompile php without --disable-phar

the ctype extension missing. install or recompile php without --disable-ctype

above error facing , how solve it, more have install xampp, composer_setup.exe , want run composer cygwin terminal. how run ?

a bit late, can try to:

  1. copy composer.phar cygwin/usr/bin
  2. create new composer.bat file with:

@echo off

php "%~dp0composer.phar" %*

  1. then restart cygwin , retry

additionaly, can help:

cygwin/gitbash + composer = unknown command


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -