【问题标题】:Start typescript node server in terminal?在终端中启动打字稿节点服务器?
【发布时间】:2018-09-18 08:26:56
【问题描述】:

我想运行这个节点应用,但它在 typeScript 中,here

我已经安装了 typeScript 但如何启动节点服务器?

【问题讨论】:

  • 您在执行npm i 之后尝试过npm start 命令吗?

标签: javascript node.js typescript ecmascript-6


【解决方案1】:

package.json 可以看出,有一个监视命令正在编译打字稿文件,然后在节点上运行结果。否则命令将是:tsc --watch & nodemon dist/app.js

【讨论】:

  • 谢谢,但我必须先全局安装 typescript。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-06-29
  • 2018-04-05
  • 2021-02-06
  • 1970-01-01
  • 2012-08-23
  • 2017-07-31
  • 1970-01-01
相关资源
最近更新 更多