lib/cli/index.js
function(env, action) {
  if (!env.modulePath) {
    console.log(chalk.red('Local azul not found in'),
      chalk.magenta(tildify(env.cwd)));
    console.log(chalk.red('Try running: npm install azul'));
    process.exit(1);
  }

  if (!env.configPath && action.azulfile) {
    console.log(chalk.red('No azulfile found'));
    process.exit(1);
  }
}
function(env, action) {
  if (!env.modulePath) {
    console.log(chalk.red('Local azul not found in'),
      chalk.magenta(tildify(env.cwd)));
    console.log(chalk.red('Try running: npm install azul'));
    process.exit(1);
  }

  if (!env.configPath && action.azulfile) {
    console.log(chalk.red('No azulfile found'));
    process.exit(1);
  }
}
function ( env , action ) { if ( ! env . modulePath ) { console . log ( chalk . red ( 'Local azul not found in' ) , chalk . magenta ( tildify ( env . cwd ) ) ) ; console . log ( chalk . red ( 'Try running: npm install azul' ) ) ; process . exit ( 1 ) ; } if ( ! env . configPath && action . azulfile ) { console . log ( chalk . red ( 'No azulfile found' ) ) ; process . exit ( 1 ) ; } }
Verify the Liftoff environment and exit the program if we are not in a
suitable environment to operate.

@private
@function cli.verifyEnvironment
@param {Object} env The liftoff environment.
Verify the Liftoff environment and exit the program if we are not in a suitable environment to operate .