sh:php:在git bash windows 8中找不到命令
我正在从git bash CLI运行sh:php:在git bash windows 8中找不到命令,php,git,Php,Git,我正在从git bash CLI运行php composer.phar安装,它显示sh:php:Command not found。 虽然我已将环境变量路径设置为我的wamp/bin/php/php5.4.16/但您需要将wamp安装中包含php.exe的目录放入环境变量路径。它通常类似于C:\wamp\bin\php 其中\php\是包含php.exe的目录 设置php环境。变量(您可以使用以下命令轻松测试它:php-r“echo 1;”或php-v) 重新启动git shell 如果comp
php composer.phar安装
,它显示sh:php:Command not found。
虽然我已将环境变量路径设置为我的wamp/bin/php/php5.4.16/但您需要将wamp安装中包含php.exe的目录放入环境变量路径。它通常类似于C:\wamp\bin\php 其中\php\是包含php.exe的目录
php-r“echo 1;”
或php-v
)php-r“readfile('https://getcomposer.org/installer“);”php
在没有git shell的情况下运行php:
C:\wamp\bin\php
phpX.Y.ZZ
打开命令提示窗口
php参数
无论您使用的是gitbash还是cmd,都应该以管理员身份运行它。导航到您的项目,然后键入命令“composer install”,它将起作用。我的还好