我是在linux上做的,windows和Mac的在github上都有:https://github.com/rogerwang/node-webkit/wiki/How-to-package-and-distribute-your-apps
要打包一个双击就可以直接运行的node-webkit应用,需要有:自己做的项目文件、package.json的配置文件,还有下载下来的node-webkit。
把下载下来的东西解压后,直接在终端运行nw:
1)先cd到该文件夹里; 2)输入:./nw
我的会报这个错: