node.js - node脚本可执行文件
迷茫
迷茫 2017-04-17 13:54:37
0
2
577

已经写好了实现某个功能的node脚本。如何将这个脚本转换为可执行文件。使得没有node环境的情况下也可以通过执行exe文件运行,实现脚本功能。

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
洪涛

How can you run java without a java environment? How can you run node without a node environment?
How can people survive without a human living environment?

1. The system provides a corresponding environment, and then you can run your node directly
2. Package an environment, such as packaging the node environment and your node script together, such as the current electron or nwjs
3 .Use your target environment (such as linux shell), write a shell script, install your node environment after running it, and then run your script

伊谢尔伦

The requirement you talked about can be achieved with electron.
It just costs money to learn, I’m not sure if you got what I said

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template