Angular - PHP (VSCode) : php : 术语'php'不被识别为 cmdlet、函数、脚本文件或可操作程序的名称



我试图在VSCode上运行我的php文件,甚至在将路径添加到环境变量之后。它仍然显示

`php : The term 'php' is not recognized as the name 
of a cmdlet, function, script file, or operable  
program. Check the spelling of the name, or if a 
path was included, verify that the path is correct   
and try again.
At line:1 char:1
+ php -S 0.0.0.0:1234
+ ~~~
+ CategoryInfo          : ObjectNotFound: (php:  
String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExcept  
ion`

Xampp的服务器也打开了,它仍然一次又一次地显示相同的错误,请帮助我解决这个问题。附如下截图

Angular服务器侧的错误图像

尝试重新安装composer并在composer中再次设置PHP路径,然后再检查一次。不要忘记回复命令提示符。

最新更新