ts-test The example of using tsc and nodemon to execute typescript code. npm i typescript -g // 监测修改 tsc xxx.ts -w // node运行 node xxx.js // nodemon检测js npm i -g nodemon nodemon xxx.js 具体可以查看文档 https://www.yuque.com/guang-aadik/txqfk1/pws7sz