-
Install(update) AppInstaller from Microsoft Store https://apps.microsoft.com/detail/9NBLGGH4NNS1?hl=en-us&gl=US
winget upgrade --all
-
restart Terminal
winget install git.git --silent --accept-source-agreements --accept-package-agreements
winget install --scope machine -e --silent --accept-source-agreements --accept-package-agreements --id Microsoft.VisualStudioCode