gpt4 book ai didi

symfony - symfony CLI is installed but path in environnement variable not working(Symfony-symfony CLI已安装,但环境变量中的路径不起作用)

转载 作者:bug小助手 更新时间:2023-10-24 16:59:57 33 4
gpt4 key购买 nike



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别名


更多回答

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com