[SalesForce] SFDX force:auth:web:login not working in Visual Studio Code

I am able to open via bash and powershell, but when I use Visual Studio Code's built in terminal it does not work. Anyone else having this problem?

Best Answer

I'm also facing the same problem. Finally, I got the answer. VS Code tries to open the browser. If the application don't know the default browser, then this error will occur. Set Google Chrome or Internet Explorer as your default browser.

Or After entering the command, wait for minute. It will ask you, the application type. Select the browser you want to authorize.

Related Topic