[Solved] Typescript installation TS node execution error

1.First time using ts Install ts-node compile error
1.1 Installing typescript
npm install typescript -g || yarn global add typescript
1.2 Install ts-node to execute code
npm install -g ts-node

2. Install it again at this point
npm install -D tslib @types/node
3. Then execute the ts-node file name and you’re done

Read More: