Skip to main content
Jessanel Cabase (Accenture Inc.) 님이 #Integration에 질문했습니다

I was trying to authorize my org but I got this error. So I googled what this might mean but it says to update my sfdx. I did try updating it but got the same error

C:\Users\username\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd"' is not recognized as an internal or external command, operable program or batch file 

How to fix vscode error. I was trying to authorize my org but got this error C:\Users\username\AppData\Local\sfdx\client\bin\..\7.209.6-8ba3197\bin\sfdx.cmd

Anyone who have idea on this? Thanks! 
답변 2개
  1. 2023년 9월 11일 오전 6:29
    HI Jessanel,

    As mentioned in https://salesforce.stackexchange.com/questions/355477/sfdx-authorize-an-org-failed-to-run-in-vscode

    1. Verify if salesforce CLI is installed successfully or not. If Salesforce CLI is already installed, check the version number by running the command "sfdx --version" in the terminal. Make sure it is the latest version.

    2. Add the path of the Salesforce CLI to the environmental variables.

    If updating Salesforce CLI does not fix the issue, try deleting the sfdx folder located at "C:\Users\username\AppData\Local\sfdx" and then reinstalling Salesforce CLI.

    If none of the above steps work, try restarting VS Code and your machine.

    Related:

    https://developer.salesforce.com/forums/?id=9062I000000DKBwQAO

    https://github.com/forcedotcom/salesforcedx-vscode/issues/3459

    https://github.com/forcedotcom/salesforcedx-vscode/issues/2869

    If this information helps, please mark the answer as best. Thank you
0/9000