Skip to content
Ayushman Chhabra edited this page Jul 20, 2024 · 6 revisions

How to get the location of nw.exe (or application path)?

See https://github.com/rogerwang/node-webkit/issues/1197

Windows flags NW.js as trojan. I am unable to run my application.

This is a false positive. Please submit the file to Windows to report it as such:

https://www.microsoft.com/en-us/wdsi/filesubmission

Application window does not launch or is unstable on Linux

There can be many reasons for this.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

If you get this error, enable the --disable-gpu flag:

Via package.json:

{
  "chromium-args": "--disable-gpu"
}

Via command line:

/path/to/nw . --disable-gpu

GUI does not launch with Opening in existing browser session. message on Linux

NW.js based apps are singletons. This means that successive launches will terminate immediately.

To kill the existing NW.js process:

  1. ps aux to find the pid
  2. kill XXXX where XXXX is the pid.

Refs: https://github.com/streamlink/streamlink-twitch-gui/issues/695#issuecomment-565476126

NW.js does not launch on MacOS.

On MacOS, unsigned binaries may not run. The quarantine flag will have to be cleared.

sudo xattr -r -d com.apple.quarantine /path/to/nwjs.app
Clone this wiki locally