TypeScript 在已经安装了node之后,在命令行中输入: npm install -g typescript 打印版本号,验证是否安装成功: tsc -v 参考: https://www.runoob.com/typescript/ts-install.html