First install vscode and configure it as you please. During setup ensure the checkbox for the PATH is checked
https://davidtranscend.com/blog/windows-terminal-workflow-guide/ (enabling developer mode is not required anymore)
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions