'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?

别等时光非礼了梦想. 提交于 2020-01-03 13:05:21

问题


I've recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml exists, it says 'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?


回答1:


This is linux based code..

$ vendor/bin/phpunit

Try this for windows..

vendor\bin\phpunit



回答2:


Please try this command for windows:

php vendor/phpunit/phpunit/phpunit




回答3:


  1. Install dependencies via composer

    $ composer update

  2. Run tests

    $ vendor/bin/phpunit



来源:https://stackoverflow.com/questions/47740011/vendor-is-not-recognized-as-an-internal-or-external-command-im-using-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!