scripts/beforePluginInstallHook.js
function checkCliDependency(ctx) {
  var result = spawnSync('cordova-hcp', [], { cwd: './plugins/' + ctx.opts.plugin.id });
  if (!result.error) {
    return;
  }

  suggestCliInstallation();
}
function checkCliDependency(ctx) {
  var result = spawnSync('cordova-hcp', [], { cwd: './plugins/' + ctx.opts.plugin.id });
  if (!result.error) {
    return;
  }

  suggestCliInstallation();
}
function checkCliDependency ( ctx ) { var result = spawnSync ( 'cordova-hcp' , [ ] , { cwd : './plugins/' + ctx . opts . plugin . id } ) ; if ( ! result . error ) { return ; } suggestCliInstallation ( ) ; }
region CLI specific 
Check if cordova-hcp utility is installed. If not - suggest user to install it.
region CLI specific Check if cordova - hcp utility is installed . If not - suggest user to install it .