简体   繁体   English

如何在Ubuntu 12.04中运行Node Webkit App?(Node JS)

[英]How to run node webkit app in ubuntu 12.04?(Node js)

I am new nodewebkit .I have created simple application of hello world. 我是新的nodewebkit。我创建了hello world的简单应用程序。

index.html 的index.html

<html>
    <head>
        <title>Webkit</title>
    </head>
    <body>
        Hello world
    </body>
</html>

package.json 的package.json

{
  "name": "sample",
  "version": "1.0.0",
  "description": "",
  "main": "index.html",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
   "window": {
    "title": "Hello world",
    "toolbar": false,
    "position": "center",
    "width": 800,
    "height": 650,
    "min_width": 800,
    "min_height": 650,
    "frame": true,
    "show": false
  },
  "author": "",
  "license": "ISC"
}

then i have zipped using .nw extension (sample.nw) after all i have execute by nodewebkit command but i getting following error 然后我已经通过nodewebkit命令执行了所有操作后压缩了.nw扩展名(sample.nw),但是出现以下错误

24012:0526/113323:ERROR:browser_main_loop.cc(162)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
LaunchProcess: failed to execvp:
/usr/lib/node_modules/nodewebkit/nodewebkit/nw
LaunchProcess: failed to execvp:
/proc/self/exe
[24012:0526/113324:ERROR:child_process_launcher.cc(344)] Failed to launch child process
[24012:0526/113324:ERROR:channel.cc(316)] RawChannel read error (connection broken)

Can somebody help to run application ? 有人可以帮助运行应用程序吗? thanks 谢谢

I think you have not installed nodewebkit properly 我认为您尚未正确安装nodewebkit

Please install from https://github.com/nwjs/nw.js latest version as per os and replace nodewebkit tools in where it's installed 请根据操作系统从https://github.com/nwjs/nw.js安装最新版本,并在其安装位置替换nodewebkit工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM