简体   繁体   English

cakephp 4.* cake : 术语“蛋糕”不被识别为 cmdlet 的名称

[英]cakephp 4.* cake : The term 'cake' is not recognized as the name of a cmdlet

any help please DB : XAMPP , logiciel : vscode任何帮助请 DB: XAMPP , logiciel : vscode

https://i.stack.imgur.com/Ro278.jpg

cake : The term 'cake' is not recognized as the name of a cmdlet, function, script file, or operable program. cake :术语“蛋糕”不是 cmdlet、函数、脚本文件或可运行程序的名称。 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在行:1 字符:1

By default Powershell doesn't run commands from the current location, you'd for example have to lower protection by adding the directory to your path environment variable (which I wouldn't recommend).默认情况下,Powershell 不会从当前位置运行命令,例如,您必须通过将目录添加到路径环境变量来降低保护(我不建议这样做)。 Alternatively you'd use .\\ before the command, to make it clear that you want to run a command in the current directory, ie .\\cake .或者,您可以在命令之前使用.\\ ,以表明您要在当前目录中运行命令,即.\\cake

However you should not run cake from within the bin directory in the first place, you should run it from the root of your application, ie from within your cakephp directory, so that you'd use:但是,您不应该首先从bin目录中运行cake ,您应该从应用程序的根目录中运行它,即从cakephp目录中运行它,以便您使用:

bin\cake bake

See also也可以看看

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM