nodejs搭一个web服务器 新建server文件夹 初始化 npm init -y 引入类型定义文件 npm i @types/node --save 编写tsconfig配置文件 编写80端口hello.ts文件 启动 node build/hello_server.js