trying to practice https://trailhead.salesforce.com/content/learn/modules/sfdx_app_dev/sfdx_app_dev_setup_dx?trail_id=sfdx_get_started

but getting SFDX error, mind you sfdx successfully installed and already I finished other modules of trailhead using usual vcmd prompt, only when trying with VS code I am getting error

VS code error for SFDX here

  • If this is not a duplicate of this question, would you please go through the same debugging steps? For example, show us how you have configured your PATH, and what is echoed in the terminal if you do echo %PATH%.
    – David Reed
    Dec 20, 2018 at 1:51

1 Answer 1


Try closing out the terminal and reopening a new one.

Or close out VS Code and re-open.

If you installed the SFDX CLI while the terminal was already open then this may be the issue.

  • yes restarted the entire machine worked for me Dec 20, 2018 at 6:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.