"func –version" command from cmd returns CommandNotFoundException. Why func command is not working from commandline?

huangapple go评论104阅读模式
英文:

"func --version" command from cmd returns CommandNotFoundException. Why func command is not working from commandline?

问题

翻译结果:

func:该术语“func”未被识别为 cmdlet、函数、脚本文件或可操作的程序的名称。
检查名称的拼写,或者如果包含了路径,请验证路径是否正确,然后重试。
在行:1 字符:1
+ func --version
+ ~~~~
+ CategoryInfo:ObjectNotFound: (func:String) [],CommandNotFoundException
+ FullyQualifiedErrorId:CommandNotFoundException

来自命令行:
func --version
英文:

func : The term 'func' 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

  • func --version
  •   + CategoryInfo          : ObjectNotFound: (func:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    

from commandline:
func --version

答案1

得分: 0

请检查您的系统中是否已安装Azure Functions Core Tools
转到控制面板 > 程序 > 程序和功能 >

"func –version" command from cmd returns CommandNotFoundException. Why func command is not working from commandline?

然后您可以从命令提示符中检查函数版本:

"func –version" command from cmd returns CommandNotFoundException. Why func command is not working from commandline?

如果上述工具未安装,您可以从MS Doc安装它。

英文:

Check if you have installed the Azure Functions Core Tools in your System.
Go to Control Panel > Programs > Programs and Features >

"func –version" command from cmd returns CommandNotFoundException. Why func command is not working from commandline?

and then you check the function version from the command prompt:

"func –version" command from cmd returns CommandNotFoundException. Why func command is not working from commandline?

If the above tool is not installed, you can install from this MS Doc.

huangapple
  • 本文由 发表于 2023年3月9日 23:01:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/75686358.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定