npm install -D typescript ts-node. 接著我們就可以在專案資料夾下,使用 npx ts-node your-typescript-file.ts 指令來執行特定檔案。
確定! 回上一頁