npm i -g typescript
tsc -v
1. Create a file with a suffix of .ts, such as test.ts, and enter the following content in the file:
console.log('hello typescript!')
ts-node test.ts //会返回hello typescript!