Installation and run .ts
npm i -D typescript - install typescript in project
npm i -D typescript
./node_modules/typescript/bin/tsc - create tsconfigjson and compile typescript file
./node_modules/typescript/bin/tsc
tsconfigjson
npm install -D ts-node and run ts-node hello.ts
npm install -D ts-node
ts-node hello.ts
node lib/hello.ts
Last updated 2 years ago