0

I am trying to install mink/behat on windows machine using composer by following the help given on behat page. http://docs.behat.org/cookbook/behat_and_mink.html.

But when I run

php composer.phar install

then I get the error

enter image description here

But I have composer.json(exactly same as described in behat page) file in mentioned directory. Can someone please guide me how can I install it. Thanks

waqas
  • 1,115
  • 5
  • 19
  • 32

1 Answers1

1

Composer installs packages on project-base. I don't think you have a PHP project inside C:\Windows\system32...

Navigate to your project by using cd (change dir) and be sure the composer.phar file is automatically loaded in every directory (see this answer).

Then create a composer.json file in which you put the things that is stated in the docs.

After that run composer install (or php composer.phar install, depends on which install method you used).

Community
  • 1
  • 1
Wouter J
  • 41,455
  • 15
  • 107
  • 112
  • Thanks. I have already got it running. And got rid of the problem by doing exactly as you described. – waqas May 23 '13 at 08:42