def runNpmInstall(wd=None, dev=False, npm='npm'):
    wd = wd or constants.PACKAGE_DIR

    args = (npm, 'install', '--production', '--unsafe-perm') if not dev \
        else (npm, 'install', '--unsafe-perm')

    proc = subprocess.Popen(args, cwd=wd)
    proc.communicate()

    if proc.returncode != 0:
        raise Exception('Web client install failed: npm install returned %s.' %
                        proc.returncode)
Return the "time" according to this test suite.
dataset/ETHPy150Open girder/girder/girder/utility/install.py/runNpmInstall--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_limits.py/BaseLimitTestSuite._get_time