nw.js
nw.js copied to clipboard
[v0.13.0-beta3] "Failed to load node library" with Chrome App
When trying to load a sample Chrome App via nwjs manifest.json I get the following output:
[0114/162419:FATAL:chrome_main_delegate.cc(484)] Failed to load node library (error: dlopen(/Users/user/Downloads/nwjs-v0.13.0-beta3-osx-x64/nwjs.app/Contents/Versions/47.0.2526.73/nwjs Framework.framework/libnode.dylib, 1): Library not loaded: @executable_path/../../../nwjs Framework.framework/nwjs Framework
Referenced from: /Users/user/Downloads/nwjs-v0.13.0-beta3-osx-x64/nwjs.app/Contents/Versions/47.0.2526.73/nwjs Framework.framework/libnode.dylib
Reason: image not found)
0 nwjs Framework 0x00000001052ae443 ChromeMain + 5542339
1 nwjs Framework 0x00000001052c4d55 ChromeMain + 5634773
2 nwjs Framework 0x0000000104d6597d ChromeMain + 1789
3 nwjs Framework 0x000000010525f8e3 ChromeMain + 5219939
4 nwjs Framework 0x000000010525f47e ChromeMain + 5218814
5 nwjs Framework 0x0000000104d652c2 ChromeMain + 66
6 nwjs 0x0000000104d5af39 main + 9
7 nwjs 0x0000000104d5af24 nwjs + 3876
[1] 5303 trace trap ~/Downloads/nwjs-v0.13.0-beta3-osx-x64/nwjs.app/Contents/MacOS/nwjs
nwjs seems to run without problems and shows a window. Am I missing a dependency or is the package missing a file?
You should start nwjs with path to folder containing manifest.json, not with path to manifest.json itself.
Wow, thanks for clearing that up. Maybe we should have a better error message in that case...
This behavior is derived from chromium which expects path to application, not to package.json; however, it's mentioned widely, including Readme.md.