src/cli.js
function installCb(err) {
  if (err) {
    console.log(`${C.errorText} ${err.message}`);
    process.exit(1);
  }
  let successMessage = `${C.successText} ${packageName}
  and its peerDeps were installed successfully.`;
  if (program.onlyPeers) {
    successMessage = `${
      C.successText
    } The peerDeps of ${packageName} were installed successfully.`;
  }
  console.log(successMessage);
  process.exit(0);
}
function installCb(err) {
  if (err) {
    console.log(`${C.errorText} ${err.message}`);
    process.exit(1);
  }
  let successMessage = `${C.successText} ${packageName}
  and its peerDeps were installed successfully.`;
  if (program.onlyPeers) {
    successMessage = `${
      C.successText
    } The peerDeps of ${packageName} were installed successfully.`;
  }
  console.log(successMessage);
  process.exit(0);
}
function installCb ( err ) { if ( err ) { console . log ( ` ${ C . errorText } ${ err . message } ` ) ; process . exit ( 1 ) ; } let successMessage = ` ${ C . successText } ${ packageName } ` ; if ( program . onlyPeers ) { successMessage = ` ${ C . successText } ${ packageName } ` ; } console . log ( successMessage ) ; process . exit ( 0 ) ; }
Callback which is called after the installation
process finishes
@callback
@param {Error} [err] - the error, if any, that occurred during installation
Callback which is called after the installation process finishes