Always use install for apm

This commit is contained in:
Ash Wilson
2018-08-08 12:36:15 -04:00
parent 96e563555c
commit c7aaa880fb

View File

@@ -6,9 +6,10 @@ const CONFIG = require('../config')
module.exports = function (ci) {
console.log('Installing apm')
// npm ci leaves apm with a bunch of unmet dependencies
childProcess.execFileSync(
CONFIG.getNpmBinPath(),
['--global-style', '--loglevel=error', ci ? 'ci' : 'install'],
['--global-style', '--loglevel=error', 'install'],
{env: process.env, cwd: CONFIG.apmRootPath}
)
}