Complete the code to run a TypeScript file using ts-node.
ts-node [1]To run a TypeScript file with ts-node, you specify the TypeScript file name with the ts-node command.
Complete the command to install ts-node globally using npm.
npm install -g [1]The ts-node package allows running TypeScript files directly. Installing it globally with npm uses npm install -g ts-node.
Fix the error in the command to run a TypeScript file with ts-node.
ts-node [1]ts-node runs TypeScript files, so the file must have a .ts extension. Using .js or other extensions will cause errors.
Fill both blanks to run a TypeScript file with ts-node and pass an argument.
ts-node [1] [2]
You run the TypeScript file app.ts with ts-node and pass input.txt as an argument to the script.
Fill all three blanks to run a TypeScript file with ts-node, enable transpile-only mode, and pass an argument.
ts-node [1] [2] [3]
The command runs app.ts with ts-node, uses --transpile-only to speed up compilation by skipping type checks, and passes data.json as an argument.