waqas
waqas

Reputation: 1125

Installing behat with mink on windows using composer

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

Upvotes: 0

Views: 847

Answers (1)

Wouter J
Wouter J

Reputation: 41934

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).

Upvotes: 1

Related Questions