const fs = require('fs-extra')
const path = require('path')
const os = require('os')
// https://github.com/Unitech/pm2/issues/1943
// when we change pm2 install path
// it may broken pm2 user file and we must delete it
module.exports = function cleanEnv() {
  const homeDir = os.homedir()
  const pm2ConfigPath = path.resolve(homeDir, '.pm2')
  fs.removeSync(pm2ConfigPath)
}

