Showing posts with label composer. Show all posts
Showing posts with label composer. Show all posts

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

  [ErrorException] 
  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.

Saturday, November 10, 2012

Managing js vendors and symfony 2.1.x

In my preveous post I've described how to manage js vendors in symfony2. However that solution is only applicable for version 2.0.x of symfony. In this post I'll describe how to manage js vendors in 2.1.x.

The idea is the same: load js vendors via symfony's standard mechanism (composer). But load into the folder under web directory.