src/suite.js
function getNpm() {
    let execResult;
    let version;
    let version3;
    let npm;
    if (shell.which('npm')) {
        execResult = shell.exec('npm --version', { silent: true });
        if (execResult.code === 0) {
            version = execResult.stdout;
        }
    }

    if (version !== null && semver.satisfies(version, '>= 3.0.0')) {
        npm = 'npm';
    }

    if (!npm) {
        if (shell.which('npm3')) {
            execResult = shell.exec('npm3 --version', { silent: true });
            if (execResult.code === 0) {
                version3 = execResult.stdout;
            }
        }

        if (version3 === null) {
            npm = 'npm';
        } else {
            npm = 'npm3';
        }
    }
    return npm;
}
function getNpm() {
    let execResult;
    let version;
    let version3;
    let npm;
    if (shell.which('npm')) {
        execResult = shell.exec('npm --version', { silent: true });
        if (execResult.code === 0) {
            version = execResult.stdout;
        }
    }

    if (version !== null && semver.satisfies(version, '>= 3.0.0')) {
        npm = 'npm';
    }

    if (!npm) {
        if (shell.which('npm3')) {
            execResult = shell.exec('npm3 --version', { silent: true });
            if (execResult.code === 0) {
                version3 = execResult.stdout;
            }
        }

        if (version3 === null) {
            npm = 'npm';
        } else {
            npm = 'npm3';
        }
    }
    return npm;
}
function getNpm ( ) { let execResult ; let version ; let version3 ; let npm ; if ( shell . which ( 'npm' ) ) { execResult = shell . exec ( 'npm --version' , { silent : true } ) ; if ( execResult . code === 0 ) { version = execResult . stdout ; } } if ( version !== null && semver . satisfies ( version , '>= 3.0.0' ) ) { npm = 'npm' ; } if ( ! npm ) { if ( shell . which ( 'npm3' ) ) { execResult = shell . exec ( 'npm3 --version' , { silent : true } ) ; if ( execResult . code === 0 ) { version3 = execResult . stdout ; } } if ( version3 === null ) { npm = 'npm' ; } else { npm = 'npm3' ; } } return npm ; }
Looks for npm.
@returns {*}
Looks for npm .