0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

terraform開発でコマンド実行時に「No such file or directory」が表示された場合

Posted at

事象

久しぶりにTerraform学習のためTerraformコマンドを実行したところ以下のようなエラーが表示されました。

$ terraform -v
/usr/local/Cellar/tfenv/3.0.0/lib/tfenv-exec.sh: 行 43: /usr/local/Cellar/tfenv/3.0.0/versions/0.14.6/terraform: No such file or directory

なぜかterraformのバイナリが削除され、terrafromコマンドが実行できない状態でした。

環境

Mac 12.4
tfenv 3.0.0

解決

対象のバージョンを一度アンインストールして、再インストールして解決しました。

$ tfenv uninstall 0.14.6
$ tfenv install 0.14.6
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?