1
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.

CLIが急に使えなくなった件

Posted at

Salesforce Cliが急に使えなくなった、コマンドを実行するとなんと下記のようにエラーが表示される。

'"C:\Users\XXXXX\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd"' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

いろいろ検索して、Githubには、再インストールすれば治るよと書いてありますが
再インストールしても治らず、システム環境変数を確認すると
「C:\instrall\sfdx\bin」があり「C:\Program Files\sf\bin」より前に設定されている。
「C:\instrall\sfdx\bin」を削除しVSCode再起動して試したら、
Cliコマンドは問題なく実行できるようになりました。

1
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
1
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?