In the environnement variable, then in system variable, I edited the path and added
在环境变量中,然后在系统变量中,编辑路径并添加
C:\Users\Tobe\symfony-cli_windows_amd64\symfony.exe
then I saved it and exit with all the OK messages. I restarted my console just in case too.
然后我将其保存并退出,并显示所有OK消息。我重启了我的主机,以防万一。
But in a console I still can't use "symfony" command line, but symfony CLI is working if I use the complete command :
但在控制台中,我仍然不能使用“symfony”命令行,但如果我使用完整的命令,symfony CLI可以工作:
C:\Users\Tobe\symfony-cli_windows_amd64\symfony.exe
What is wrong?
怎么啦?
I tried to install symfony CLI with scoop, but I couldn't install scoop because the commandes in the quick start didn't worked (
我试着用勺子安装symfony CLI,但我无法安装勺子,因为快速入门中的命令不起作用(
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
irm get.scoop.sh | iex
)
)
Both
两者都有
Set-ExecutionPolicy
and
和
irm
were not recognized.
都没有被认出。
更多回答
Your environment variable for the path should include just the folder name, not the executable.
Your environment variable for the path should include just the folder name, not the executable.
@GregSchmidt thank you, both C:\Users\Tobe\symfony-cli_windows_amd64\ or C:\Users\Tobe\symfony-cli_windows_amd64 seems to be working!
@GregSchmidt谢谢,C:\USERS\TOBE\SYMPONY-CLI_WINDOWS_AMD64\或C:\USERS\TOBE\SYMPONY-CLI_WINDOWS_AMD64似乎都起作用了!
优秀答案推荐
I got the same problem, and the unique solution i founded is to make an powershell permanent alias with the full path to "symfony"..
我也遇到了同样的问题,我创建的唯一解决方案是创建一个PowerShell永久别名,其中包含指向“symfony”的完整路径。
Follow theses steps :
How to create permanent powershell-aliases
遵循以下步骤:如何创建永久PowerShell别名
更多回答
我是一名优秀的程序员,十分优秀!