npm -g typescript1、typescript包:用来编译ts代码,实现ts-->js验证:tsc -v编译:1、tsc a.ts --> a.js 2、node a.js2、ts-node包:ts-node命令