依赖 安装 nodejs 环境 http://nodejs.cn/ 建议安装稳定版 安装打包工具 npm install pkg -g 打包程序 pkg src/index.js -o app 这时可以发现当前目录下已经生成了一个 .exe 文件,直接双击就可以使用了