Typescript Setup#
Install nvm for windows: link
Then, install the latest LTS version (unless otherwise specified)
nvm install --lts
nvm use lts
Then globally install typescript:
npm install -g typescript ts-node
At this point, I found the following location contained tsc, so PATH it:
C:\Users\comfy\AppData\Roaming\npm
Close all terminals and VSCode and reopen. Debugging should now work.
Last, enable typescript code running by creating a tsconfig.json file:
npx tsc --init
You should now be good-to-go.