tools/android/dependency_analysis/upload_html_viewer.py
def _CheckNPM():
    """Fail with a proper error message, if npm is not installed."""
    if subprocess.call(['npm', '--version'], stdout=subprocess.DEVNULL) != 0:
        link = 'https://nodejs.org'
        raise Exception(
            'npm not installed or not on your PATH. Either install Node.js '
            'through your package manager or download it from ' + link + '.')
Fail with a proper error message, if npm is not installed.
Fail with a proper error message, if npm is not installed.
Fail with a proper error message if npm is not installed .
def _CheckNPM():
    if subprocess.call(['npm', '--version'], stdout=subprocess.DEVNULL) != 0:
        link = 'https://nodejs.org'
        raise Exception(
            'npm not installed or not on your PATH. Either install Node.js '
            'through your package manager or download it from ' + link + '.')
def _CheckNPM ( ) : if subprocess . call ( [ 'npm' , '--version' ] , stdout = subprocess . DEVNULL ) != 0 : link = 'https://nodejs.org' raise Exception ( 'npm not installed or not on your PATH. Either install Node.js ' 'through your package manager or download it from ' + link + '.' )
Fail with a proper error message, if npm is not installed.
Fail with a proper error message if npm is not installed .
"""Fail with a proper error message, if npm is not installed."""