# node-typescript-combine **Repository Path**: dragonpig/node-typescript-combine ## Basic Information - **Project Name**: node-typescript-combine - **Description**: Node.js结合Typescript使用 - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-03 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Node.js + Typescript 结合使用 ### 安装Typescript ``` npm i -g typescript //全局安装 npm i --save-dev typescript //当前文件夹安装 ``` ### 安装@types/node ``` npm i -g @types/node ``` ## 先构建 ``` npm run build 或 tsc --pretty(全局) 或 node_modules/bin/tsc --pretty ``` ## 运行 ``` npm run start 或 node built/main.js(全局) ```