WindowsTypeScripts 安装与配置详细教程

在这里插入图片描述

安装命令

npm i -g typescript

验证安装是否成功

tsc -v

TypeScript运行

1.创建一个后缀名为.ts的文件,如test.ts,文件中输入以下内容:

console.log('hello typescript!')
  1. 打开控制台并输入:
ts-node test.ts //会返回hello typescript!

猜你喜欢

转载自blog.csdn.net/weixin_45428910/article/details/131546701