To run typscript globally on local machine
npm install -g typesrciptTo initialize a TypeScript project, navigate to your project folder and run
tsc --initRun the following command (use as an administrator) to allow PowerShell scripts to solve the error
Set-ExecutionPolicy UnrestrictedTo build your project using the specified config file (tsconfig.json) in build mode.
tsc -b tsconfig.jsonUncomment the following lines and modify in tsconfig.json
"rootDirs": ["./src"],
"sourceMap": true,
"outDir": "./dist",