安装node, node -v 查看node版本, npm -v查看npm版本, npm install -g typescript安装typescript, 安装好之后 tsc -v查看当前版本确认安装完成。