1.安装
npm install typescript -g
2.编译
tsc test.ts
3.安装ts-node直接 ts-node + test.ts即可完成编译和运行
npm install -g ts-node