跳至正文
Wener Notes

pkg

约 1 分钟阅读
    • Node.js -> exec
    • node 现在支持 SEA - Single Executable Application
    • 主要用于容器环境
    • 会下载添加 nodejs runtime
bash
# PKG_CACHE_PATH=$HOME/.pkg-cache

pkg -t node16-macos-x64 dist/servers/index.js
pkg -t node16-alpine-x64 src/server.ts

关联信息

反向链接、本文链接的其他页面和外部资料。

参考资料

GitHub5 条
最近更新commit 11827b3编辑