Monday, April 29, 2013

Composer in cygwin: CreateProcess failed, error code - 267

If you are using cygwin you may get the following error
admin@Win7-64:/var/www$ php composer.phar install

  proc_open(): CreateProcess failed, error code - 267
while installing stuff via composer.

After some investigation I found out that it doesn't throw exception if I run it in built-in windows cmd.

Microsoft docs say that error #267 occurs when invalid directory names are used. So I guess the reason is unix style paths in cygwin.

Thereby try to use composer in built-in cmd if you encounter #267 error.

P.S. You might want to add C:\cygwin\bin to your PATH environment variable.