Recently I came upon an error which I cannot resolve. I have searched through google and did not manage to find the answer.

I have installed salesforce CLI and when typing the command:

  • in terminal: sfdx force:auth:web:login and its variations ( with parameters )
  • in visual studio code from command palette: Authorize an org

I get the error:

ENOENT: spawn cmd ENOENT

I am not able to interpret this error message. It seems that other salesforce commands are working well.

I tried reinstalling the CLI but it didn't solve the error. Using Windows.

New contributor
user64574 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

user64574 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.