无法 运行 nw.js 在 ubuntu 中申请

Unable to run nw.js application in ubuntu

自己根据this link. Also I tried to run the same in ubuntu OS using the command given in this link中给出的教程创建了一个node webkit helloworld应用。但是当我 运行 命令 nw /home/myUsername/Documents/myNodeWebkitApps/helloWorld/myApp.nw 时,它会在终端中抛出以下结果。

usage
  nw [udp] <options> <host> <port>

Default TCP protocol can be changed to UDP by ``udp'' argument.
UDP options
  currently none
TCP options
  -f               firewall mode, connection is initiated by netread.
                   Host specification is ignored and can be omited.
  -c               ignored. Transmission checksum is activated by
                   default.
  -C algorithm     use the specified algorithm for checksum. This
                   option also implies -c.
                   Supported algorithms (the first is default):
                       md5 none
general options
  -i <file>        read data from file instead of stdin.
  -b               print speed in b/s instead of B/s
  -h <n>           print `#' after each n KiB transferred (def. 10485.76).
  -H <n>           print `#' after each n MiB transferred (def. 10.24).
  -q               be quiet.
  -v               be verbose.
  -vv              be very verbose.
  -V               show version.
  -vV              show verbose version.
return values
  0                no errors.
  1                some error occured.
  2                checksum validation failed.

我怎样才能运行和第一个link给的一样?

此处的输出不是来自 nw.js,而是安装在您机器上的 netrw。您可以通过从计算机中删除 netrw 或将路径更正为 nw.js.

来修复它

最后,在 this link and this Whosebug answer 的帮助下,我设法 运行 hello world 应用程序 like

  1. 通过命令安装 nw builder npm install nw-builder -g
  2. 如果你得到类似 /usr/bin/env: node: No such file or directory 的错误,那么按照上面第二个 link 中给出的,做一个 symlink of node as ln -s /usr/bin/nodejs /usr/bin/node
  3. 现在我们可以通过命令nwbuild -r ~/Desktop/webkit-example
  4. 运行我们的应用程序