【发布时间】:2022-01-19 05:13:43
【问题描述】:
我正在 Node.js 上试用 TypeScript。
我已经安装了它
npm install typescript
只要运行tsc:
:~$ tsc
Version 1.0.1.0
Syntax: tsc [options] [file ..]
所以,我正在尝试运行简单的代码:
console.log('test');
什么都不输出。
如何从 node.js 上运行的打字稿在控制台中输出任何内容?
【问题讨论】:
标签: node.js typescript