def check_node_runtime!
      stdout, exit_status = Open3.capture2("node", "--version")

      if exit_status.success?
        @node_version = stdout.strip.gsub(/\Av/, "")
        engine.echo "Using Node.js runtime #{ @node_version }."
      else
        raise engine::CompilerError, %{No Node.js runtime has been found in your system.}
      end
      nil
    end
def check_node_runtime!
      stdout, exit_status = Open3.capture2("node", "--version")

      if exit_status.success?
        @node_version = stdout.strip.gsub(/\Av/, "")
        engine.echo "Using Node.js runtime #{ @node_version }."
      else
        raise engine::CompilerError, %{No Node.js runtime has been found in your system.}
      end
      nil
    end
Checks if Node.js runtime exists in $PATH and is accessible.

 @raise {JadePug::CompilerError}
   If Node.js runtime doesn't exist in system.
 @return [nil]