有没有办法编译 node.js 源文件? [英] Is there a way to compile node.js source files?

查看:23
本文介绍了有没有办法编译 node.js 源文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法编译node.js 应用程序?

Is there a way to compile a node.js application?

推荐答案

我可能很晚了,但你可以使用nexe";在一个可执行文件中编译 nodejs + 脚本的模块:https://github.com/crcn/nexe

I maybe very late but you can use "nexe" module that compile nodejs + your script in one executable: https://github.com/crcn/nexe

EDIT 2021: Nexe 的最新版本是从 2017 年开始的,而且开发速度似乎有所放缓,因此这些天还应考虑使用更广泛使用的 Vercel 替代方案:pkg

EDIT 2021: Nexe's latest release is from 2017 and it appears that development has otherwise slowed, so the more-widely-used alternative from Vercel should also be considered these days: pkg

这篇关于有没有办法编译 node.js 源文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆