全局安装ts-node,typescript,并运行

 

# Locally in your project.
npm install -D typescript
npm install -D ts-node

# Or globally with TypeScript.
npm install -g typescript
npm install -g ts-node

# Depending on configuration, you may also need these
npm install -D tslib @types/node
posted @ 2024-08-29 23:18  走走停停走走  Views(17)  Comments(0Edit  收藏  举报