def METHOD_NAME(self):
    # Checks if node is in PATH, errors if it isn't
    try:
        run(["node", "-v"], stdout=DEVNULL, check=True)
    except (CalledProcessError, FileNotFoundError, PermissionError) as err:
        raise RuntimeError(
            "Couldn't execute node. Please ensure you have node.js installed and in PATH. "
            "See https://nodejs.org/ for instructions. "
            f"Original error is {err}"
        )
    rfbrowser_dir = Path(__file__).parent
    installation_dir = rfbrowser_dir / "wrapper"
    # This second application of .parent is necessary to find out that a developer setup has node_modules correctly
    project_folder = rfbrowser_dir.parent
    subfolders = os.listdir(project_folder) + os.listdir(installation_dir)
    if "node_modules" in subfolders:
        return
    raise RuntimeError(
        f"Could not find node dependencies in installation directory `{installation_dir}.` "
        "Run `rfbrowser init` to install the dependencies."
    )