New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.RuntimeException: java.lang.Exception: node.exe couldn't be found in #6
Comments
I guess ur on Windows? |
@empty-person HBrowser hBrowser = new HBrowser();
try (PlaywrightWindow playwrightWindow = hBrowser.openCustomWindow()
.debugOutputStream(System.out)
.buildPlaywrightWindow()) {
// ...
} catch (Exception e) {
e.printStackTrace();
} and share the result please. |
Gonna close this for now since there was no response. |
on Windows the first time I running my code:
... is missing |
@nocelab Can u give the latest version a try. Also, delete the headless-browser folder just to be sure. |
running PuppeteerWindowTest.java with 2.3.4 (sorry for italian console output):
|
Oh ok looks like npm tries to run its install script via a system wide node installation, instead of the one installed by headleass browser in your current working dir, which is weird and doesnt happen for me. |
Related to: npm/rfcs#531 |
import com.osiris.headlessbrowser.HBrowser;
import com.osiris.headlessbrowser.windows.PlaywrightWindow;
public class Main {
public static void main(String[] args) {
HBrowser hBrowser = new HBrowser();
try (PlaywrightWindow window = hBrowser.openWindow()) {
window.load("https://example.com");
System.out.println(window.getInnerHtml());
} catch (Exception e) {
e.printStackTrace();
}
}
}
Error during installation of NodeJS. Details:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Exception: node.exe couldn't be found in D:\Projects\WebDriverPleaseWork\headless-browser\node-js\download.zip
at com.osiris.headlessbrowser.windows.PlaywrightWindow.(PlaywrightWindow.java:192)
at com.osiris.headlessbrowser.windows.WindowBuilder.buildPlaywrightWindow(WindowBuilder.java:79)
at com.osiris.headlessbrowser.HBrowser.openWindow(HBrowser.java:30)
at Main.main(Main.java:7)
Caused by: java.lang.RuntimeException: java.lang.Exception: node.exe couldn't be found in D:\Projects\WebDriverPleaseWork\headless-browser\node-js\download.zip
at com.osiris.headlessbrowser.js.contexts.NodeContext.(NodeContext.java:151)
at com.osiris.headlessbrowser.windows.PlaywrightWindow.(PlaywrightWindow.java:58)
... 3 more
Caused by: java.lang.Exception: node.exe couldn't be found in D:\Projects\WebDriverPleaseWork\headless-browser\node-js\download.zip
at com.osiris.headlessbrowser.js.contexts.NodeContext.(NodeContext.java:144)
... 4 more
Process finished with exit code 0
The text was updated successfully, but these errors were encountered: