I recently moved over to an Apple Silicon-based Macbook Pro, and after installing Visual Studio Code and Powershell (pwsh), I was prompted with the following error.

Unable to find PowerShell! Do you have it installed? You can also configure custom installations with the 'powershell.powerShellAdditionalExePaths' setting.
Fortunately, the fix is straightforward. First, open up Terminal (zsh) and type "whereis pwsh" In my example below, you will see the path /opt/homebrew/bin/pwsh

Next, from VS Code, Select > Code > Settings > Settings

Now, search for the setting shown in the initial error powershell.powerShellAdditionalExePaths Then press Add Item.

For Item type ‘Shell’ and for the value, add the path shown in the Terminal for pwsh. In my case /opt/homebrew/bin/pwsh then press OK.


Lastly, all you need to do is Quit and restart VS Code, and hopefully, that should solve the issue.

Thanks for reading, and I hope you found this helpful 🙂
Follow @nmangraviti
Thanks very helpful 👍