dontHaveName dontHaveName - 1 year ago 128
PHP Question

laravel 5.1 phpspec command not found

I'm trying to run phpspec but when I do a command

phpspec run
inside root project folder it just prints:

-bash: phpspec: command not found

But when I do
composer show -i
it shows it's installed (because it's in package.json):

phpspec/php-diff v1.0.2 A comprehensive li...
phpspec/phpspec 2.5.3 Specification-orie...
phpspec/prophecy v1.6.1 Highly opinionated...

What's wrong?

Answer Source

You probably need to add the path to the executable to your $PATH or, when you call it by the full path to phpspec (something like ./vendor/bin/phpspec run)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download