当前位置:网站首页>使用ts-node直接运行TypeScript代码
使用ts-node直接运行TypeScript代码
2022-06-23 05:37:00 【天渺工作室】
测试ts代码的时候 为了方便 不用tsc去编译 直接用ts-node去联调ts代码
安装typescript
npm install -g typescript
//$ tsc -v
//Version 3.2.2
安装ts-node npm官方地址https://www.npmjs.com/package/ts-node
npm install -g ts-nodedemo.ts文件
const test1:number =1;
console.log(test1);终端输入
ts-node demo.ts
//注意ts文件路径 比如ts-node D:/project1/testTs.ts
//终端打印出 1
边栏推荐
- XShell7 下载
- Day_ 12 smart health project jasperreports
- Illuminate\support\collection de duplication unique list de duplication
- leetcode - 572. 另一棵树的子树
- Topic35——34. 在排序数组中查找元素的第一个和最后一个位置
- Vs+qt project transferred to QT Creator
- Day_ 09 smart health project - mobile terminal development - Mobile quick login and permission control
- Haas 506 2.0 Tutoriel de développement - bibliothèque de composants avancés - modem. SMS (ne prend en charge que les versions supérieures à 2,2)
- 【系统】右键桌面图标,转圈后,资源管理器就崩溃,桌面就重新刷新
- Docker practice - redis cluster deployment and micro service deployment project
猜你喜欢

Day_ 06 smart health project - mobile terminal development - physical examination appointment

Haas506 2.0 development tutorial -hota (only supports versions above 2.2)

华为软件测试笔试真题之变态逻辑推理题

Miscellaneous things

中台库存中的实仓与虚仓的业务逻辑设计

English语法_形容词比较级 - 3级变化

haas506 2.0开发教程-高级组件库-modem.sms(仅支持2.2以上版本)

idea的去除转义的复制粘贴

Day_ 09 smart health project - mobile terminal development - Mobile quick login and permission control

业务逻辑安全思路总结
随机推荐
Plot+seaborn+folium: a visual exploration of Abbey's rental housing data
杂七杂八的东东
C Advanced Learning -- Reflection
2022-01-12: give a positive array arr, length N, subscript 0~n-1, a
[resolved] "the unity environment took too long to respond. make sure that: \n“
English语法_副词 - ever / once
vs+qt项目转qt creator
问题:访问组件中数据object(定义的数据)中属性也为object对象中的属性时,报错现象
Laravel log channel 分组配置
Haas506 2.0 development tutorial -hota (only supports versions above 2.2)
如何实现与FDA保持邮件通信安全加密?
20220621 Three Conjugates of Dual Quaternions
c#数据库报错问题大家帮我看看吧
haas506 2.0开发教程-sntp(仅支持2.2以上版本)
Laravel log channel grouping configuration
疫情下的传媒产业,小程序生态驱动数字化转型探索
leetcode - 572. 另一棵树的子树
记一次GLIB2.14升级GLIB2.18的记录以及其中的步骤原理
Add IPAD control function into shairplay
Termux