TypeScript 官网:https://www.typescriptlang.org/
npm全局安装命令:
npm install -g typescript
国内npm慢点问题可以通过修改npm镜像来解决
npm install -g typescript --registry https://registry.npm.taobao.org
安装完成后输入tsc
检验是否安装成功