简体   繁体   English

'symfony' 不是内部或外部命令,也不是可运行的程序或批处理文件

[英]'symfony' is not recognized as an internal or external command, operable program or batch file

I install new symfony project by using this command我使用此命令安装新的 symfony 项目

composer  create-project symfony/website-skeleton sym-toturial

Now when I run this command to start the server and run the project it is not working现在,当我运行此命令来启动服务器并运行项目时,它无法正常工作

symfony server:start

在此处输入图像描述

You did install a Symfony project.您确实安装了一个 Symfony 项目。 It only contains php, yaml, txt files, no executables.它只包含php、yaml、txt文件,没有可执行文件。

The command symfony is a standalone program.命令 symfony 是一个独立的程序。

You can download it here您可以在这里下载

Now installer support is deprecated.现在安装程序支持已弃用。 You have to install via scoop你必须通过勺子安装

Install Scoop:安装独家新闻:

> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
> irm get.scoop.sh | iex

Install Symfony CLI安装 Symfony CLI

scoop install symfony-cli

Then create new project using symfony command然后使用 symfony 命令创建新项目

symfony new --webapp my_project

暂无
暂无

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

相关问题 'git'不被识别为内部或外部命令,可操作程序或批处理文件 - 'git' is not recognized as an internal or external command, operable program or batch file 'C:\\wmic' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'C:\wmic' is not recognized as an internal or external command, operable program or batch file 'bin'不被识别为内部或外部命令,可操作程序或批处理文件 - 'bin' is not recognized as an internal or external command, operable program or batch file 'service' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'service' is not recognized as an internal or external command, operable program or batch file 'Rscript' 不是内部或外部命令,也不是可运行的程序 或批处理文件 - 'Rscript' is not recognized as an internal or external command, operable program or batch file 'mv'不被识别为内部或外部命令,可操作程序或批处理文件 - 'mv' is not recognized as an internal or external command, operable program or batch file 无法将“ composer”识别为内部或外部命令,可操作程序或批处理文件 - 'composer' is not recognized as an internal or external command, operable program or batch file 无法将“ php”识别为内部或外部命令,可操作程序或批处理文件 - 'php' is not recognized as an internal or external command, operable program or batch file 无法将“ phpspec”识别为内部或外部命令,可操作程序或批处理文件 - 'phpspec' is not recognized as an internal or external command, operable program or batch file 错误:'php'未被识别为内部或外部命令,可操作程序或批处理文件 - Error: 'php' is not recognized as an internal or external command, operable program or batch file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM