尝试安装插件时出现严重错误 - 'bin' 未被识别为内部或外部命令、可运行程序或批处理文件

Grav error when trying to install plugin - 'bin' is not recognized as an internal or external command, operable program or batch file

我正在尝试安装 grav 代码高亮插件。当我 运行 从项目根目录在我的终端控制台中执行以下命令时:

bin/gpm install highlight

我收到以下错误:

'bin' is not recognized as an internal or external command, operable program or batch file.

如何使用 gpm 安装插件并避免此错误?

php bin/gpm install highlight 

应该可以工作(尽管这不是一个很好的解决方案,但如果不添加 'php' 我一直无法弄清楚如何使其工作,并且我已将 php 添加到我的 PATH 和 .php 到 https://markladoux.wordpress.com/2012/07/06/run-php-from-command-line-with-xampp-on-windows-7/ 之后的 PATHTEXT——你可以试试,但这对我来说不是一个有效的解决方案,我在尝试使用开始一个新的 grav 项目时仍然遇到同样的错误composer ('bin/..) -> bin 不被识别为内部或外部命令。)