nodejs运行ts服务器

时间:2020-08-03 00:53:10   收藏:0   阅读:217

1.package.json

1)devDependencies 添加 "nodemon": "^1.18.6"
2)scripts 添加  "start": "nodemon --watch ‘**/*.ts‘ --exec ts-node src/index.ts"
3)npm install
4)npm run start
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!