(self)
Ensures that Node.js version installed on the system is compatible with ESLint v6
        per https://github.com/eslint/eslint/blob/master/docs/user-guide/migrating-to-6.0.0.md#-nodejs-6-is-no-longer-supported
        Suppored Node.js version  ^8.10.0 || ^10.13.0 || >=11.10.1
Ensures that Node.js version installed on the system is compatible with ESLint v6
        per https://github.com/eslint/eslint/blob/master/docs/user-guide/migrating-to-6.0.0.md#-nodejs-6-is-no-longer-supported
        Suppored Node.js version  ^8.10.0 || ^10.13.0 || >=11.10.1
Ensures that Node . js version installed on the system is compatible with ESLint v6 per https : // github . com / eslint / eslint / blob / master / docs / user - guide / migrating - to - 6 . 0 . 0 . md# - nodejs - 6 - is - no - longer - supported Suppored Node . js version ^8 . 10 . 0 || ^10 . 13 . 0 || > = 11 . 10 . 1
def _ensure_node_version(self) -> None:
        """Ensures that Node.js version installed on the system is compatible with ESLint v6
        per https://github.com/eslint/eslint/blob/master/docs/user-guide/migrating-to-6.0.0.md#-nodejs-6-is-no-longer-supported
        Suppored Node.js version  ^8.10.0 || ^10.13.0 || >=11.10.1
        """
        version = self.execute(
            ["node", "--version"],
            check=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
        )
        node_version = version.stdout.rstrip().strip("v")
        if version.returncode > 0 or not NODE_VERSION_RANGE.match(
            Version(node_version)
        ):
            raise NodeError(
                f"Node.js is not installed, or its version is not >8.10.0, >10.13.0, or >=11.10.1 (found {node_version})."
            )
def _ensure_node_version ( self ) -> None : version = self . execute ( [ "node" , "--version" ] , check = True , stdout = subprocess . PIPE , stderr = subprocess . PIPE , ) node_version = version . stdout . rstrip ( ) . strip ( "v" ) if version . returncode > 0 or not NODE_VERSION_RANGE . match ( Version ( node_version ) ) : raise NodeError ( f"Node.js is not installed, or its version is not >8.10.0, >10.13.0, or >=11.10.1 (found {node_version})." )