需求描述

将node打包成exe

技术方案

使用pkg。通过此命令行界面,您可以将 Node.js 项目打包成可执行文件,甚至可以在未安装 Node.js 的设备上运行。

使用案例

使用方法

image

page

思考🤔

Further, we’re excited about Node.js 21’s support for single executable applications.

转载请注明出处