Install TypeScript under Windows and run helloworld

1. npm command installation: npm install -g typescript

2. Check whether the installation is successful (the version number appears): tsc -v

3. Create mmcike.ts script and output hello mmcike

4. Compile typescript: tsc mmcike.ts, then generate a mmcike.js file

5. Execute mmcike.js file: node mmcike.js

Guess you like

Origin blog.csdn.net/zhunju0089/article/details/103440402