First run in the console (in my case Visual Studio Code). tsc .\file run and then run node .\file, in the VS console.