当前位置:网站首页>TypeScript simplifies running ts-node
TypeScript simplifies running ts-node
2022-08-01 03:33:00 【Front end dish dish DayDayUp】
Problem description: After each code modification, two commands (tsc file name, node file name) must be executed repeatedly to run the TS code, which is too cumbersome.
Simplified way: Use the ts-nodeb package to execute code directly in Node.js.
Installation command: npm i -g ts-node (the ts-node package providests-node command).
How to use: ts-node hello.ts.
Explanation: The ts-node command secretly converts TS->JS internally, and then runs the JS code.

边栏推荐
猜你喜欢

HIRO: Hierarchical Reinforcement Learning 】 【 Data - Efficient Hierarchical Reinforcement Learning

软件测试周刊(第82期):其实所有纠结做选择的人心里早就有了答案,咨询只是想得到内心所倾向的选择。

The IDEA can't find or unable to load The main class or Module "*" must not contain The source root "*" The root already belongs to The Module "*"

You need to know the TCP wave four times

初出茅庐的小李第113篇博客项目笔记之机智云智能浇花器实战(2)-基础Demo实现

Flutter “Hello world“ 程代码

Replacing the Raspberry Pi Kernel

The bigger and bigger the project is, I split it like this

second uncle

Introduction to machine learning how to?
随机推荐
[cellular automata] based on matlab interface aggregation cellular automata simulation [including Matlab source code 2004]
Soft Exam Senior System Architect Series: Basic Knowledge of Information Systems
被 CSDN,伤透了心
Nmap manuals - the full version
Introduction to machine learning how to?
When opening a MYSQL table, some can display editing, some do not, how to set.
普通用户无法访问hgfs目录
win10 fixed local IP
【uniCloud】云对象的应用与提升
Flutter "Hello world" program code
The 16th day of the special assault version of the sword offer
785. 快速排序
MYSQL master-slave replication
test
初出茅庐的小李第114篇博客项目笔记之机智云智能浇花器实战(3)-基础Demo实现
[Data analysis] Based on matlab GUI student achievement management system [including Matlab source code 1981]
Weekly Summary (*67): Why not dare to express an opinion
leetcode6132. Make all elements in an array equal to zero (simple, weekly)
使用ts-node报错
The device node structure is converted into a platform_device structure