pulsar/script/lib/install-apm.js
2016-08-08 15:18:21 +02:00

16 lines
351 B
JavaScript

'use strict'
const childProcess = require('child_process')
const path = require('path')
const CONFIG = require('../config')
module.exports = function () {
console.log('Installing apm')
childProcess.execFileSync(
CONFIG.npmBinPath,
['--global-style', '--loglevel=error', 'install'],
{env: process.env, cwd: CONFIG.apmRootPath}
)
}