Terraform Init命令不在Visual Studio代码中工作

发布于 2025-02-11 16:47:18 字数 307 浏览 1 评论 0原文

Terraform:“ Terraform”一词不被认为是CMDLET的名称,函数,脚本文件或 可操作的程序。检查名称的拼写,或者如果包括路径,请验证该路径是否正确
然后重试。 在线:1个字符:1

  • Terraform Init
  •   + categoryInfo:objectNotFound :( Terraform:string)[],CommandnotFoundException
      +完全QualifiedErrid:CommandnotFoundException
     

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

  • terraform init
  •   + CategoryInfo          : ObjectNotFound: (terraform:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

枕梦 2025-02-18 16:47:18

您可以引用此 link

  • 安装Terraform
  • 安装Terraform Visual Studio代码扩展名

,也可以尝试使用Windows的Linux WSL。

You can refer this link.

  • Install Terraform
  • Install Terraform Visual Studio Code extension

Or you can try using Linux WSL for windows.

无所谓啦 2025-02-18 16:47:18

如果您在Windows系统中下载了它,请尝试使用“视觉代码”管理员登录,并且应该有效。

If you have downloaded it in the windows system then try to login with the administrator on visual code and it should work.

一影成城 2025-02-18 16:47:18

如果您安装了Terraform。确保将路径添加到环境变量中。输入搜索>> env>环境变量>>系统变量>>选择路径并编辑。将路径添加到您已下载的Terraform应用程序中。重新启动系统。就是这样。再试一次

If you have installed the terraform. Make sure you add the path to the environment variable. Type in search >> Env > Environment Variables >> System Variables >> Select Path and edit. Add the path to your Terraform application which you have downloaded. Reboot the system. That's it. try again

风柔一江水 2025-02-18 16:47:18

下载最新的Terraform软件并将其安装在计算机上。对于Windows,请在C:\ Windows \ System32中从此页面下载Terraform.exe,这应该足够了。

Download the latest terraform software and install it on your machine. For windows, keep terraform.exe downloaded from this page in C:\Windows\System32 and that should be enough.

绅士风度i 2025-02-18 16:47:18

安装Terraform:

从官方网站:Terraform下载下载适当的Terraform版本。
通过按照操作系统的安装说明来安装Terraform。

将Terraform添加到路径上:

安装Terraform后,您需要确保包含Terraform可执行文件的目录在系统的路径中。这使您可以从终端中的任何位置运行Terraform命令。

$env:Path += ";<path-to-terraform>"

Install Terraform:

Download the appropriate version of Terraform for your operating system from the official website: Terraform Downloads.
Install Terraform by following the installation instructions for your operating system.

Add Terraform to the PATH:

After installing Terraform, you need to ensure that the directory containing the terraform executable is in your system's PATH. This allows you to run the terraform command from any location in the terminal.

$env:Path += ";<path-to-terraform>"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文