简体   繁体   English

“供应商”未被识别为我正在使用Windows 10的内部或外部命令。我该怎么办?

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

我最近安装了laravel并在/ tests目录中编写了一些测试但是当我在cmd中使用phpunit时,phpunit.xml存在于同一个文件夹中,它说'vendor'不被识别为我正在使用的内部或外部命令窗户10.我该怎么办?

This is linux based code.. 这是基于linux的代码..

$ vendor/bin/phpunit

Try this for windows.. 试试这个用于Windows ..

vendor\bin\phpunit

请为windows尝试此命令:

php vendor/phpunit/phpunit/phpunit

  1. Install dependencies via composer 通过composer安装依赖项

    $ composer update

  2. Run tests 运行测试

    $ vendor/bin/phpunit

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Doctrine2 - 'vendor\\bin\\doctrine' 未被识别为内部或外部命令 - Doctrine2 - 'vendor\bin\doctrine' is not recognized as an internal or external command 'composer' 在 windows 服务器中未被识别为内部或外部命令 - 'composer' is not recognized as an internal or external command in windows server 如何解决“ php”未识别为内部或外部命令,可操作程序或批处理文件 - How do I solve 'php' is not recognized as an internal or external command, operable program or batch file 当我在 Windows 上运行 composer 时,我收到一个错误“php.exe”不是内部或外部命令、可运行程序或批处理文件。 - When I run composer on Windows, I get an error of 'php.exe' is not recognized as an internal or external command, operable program or batch file.' php 未被识别为使用 xampp 的内部或外部命令 - php is not recognized as an internal or external command using xampp 通过作曲家下载后如何使用供应商文件夹中的类? - What should I do to using vendor folder located classes after download via composer? php无法识别为内部或外部命令 - php is not recognized as an internal or external command 'mysqldump' 未被识别为内部或外部命令 - 'mysqldump' is not recognized as an internal or external command 'phing' 未被识别为内部或外部命令, - 'phing' is not recognized as an internal or external command, php未被识别为内部命令(在Windows中) - php is not recognized as an internal command (in Windows)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM