diff --git a/npm/install.js b/npm/install.js index 5ec84203b8b8..1dcf5aff0afe 100755 --- a/npm/install.js +++ b/npm/install.js @@ -36,7 +36,13 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[pla } // downloads if not cached -download({version: version, platform: process.env.npm_config_platform, arch: process.env.npm_config_arch, strictSSL: process.env.npm_config_strict_ssl === 'true'}, extractFile) +download({ + version: version, + platform: process.env.npm_config_platform, + arch: process.env.npm_config_arch, + strictSSL: process.env.npm_config_strict_ssl === 'true', + quiet: process.env.npm_config_loglevel === 'silent', +}, extractFile) // unzips and makes path.txt point at the correct executable function extractFile (err, zipPath) { diff --git a/npm/package.json b/npm/package.json index f0ef1742dd86..29bbe3410515 100644 --- a/npm/package.json +++ b/npm/package.json @@ -6,8 +6,8 @@ "scripts": { "cache-clean": "rm -rf ~/.electron && rm -rf dist", "postinstall": "node install.js", - "pretest": "npm run cache-clean && node install.js", - "test": "standard && tape test/*.js" + "pretest": "npm run cache-clean && npm --silent run postinstall", + "test": "tape test/*.js && standard" }, "bin": { "electron": "cli.js"