index.js
function invokeCommandError(command, isInternalCommand) {

  if (isInternalCommand) {
    return;
  }

  const cwd = process.cwd();
  logger.error(`No modules found for ${command}`);

  if (cwd.indexOf('skyux-spa') === -1) {
    logger.error(`Are you in a SKY UX SPA directory?`);
  } else if (!fs.existsSync('./node_modules')) {
    logger.error(`Have you ran 'npm install'?`);
  }

  process.exit(1);
}
function invokeCommandError(command, isInternalCommand) {

  if (isInternalCommand) {
    return;
  }

  const cwd = process.cwd();
  logger.error(`No modules found for ${command}`);

  if (cwd.indexOf('skyux-spa') === -1) {
    logger.error(`Are you in a SKY UX SPA directory?`);
  } else if (!fs.existsSync('./node_modules')) {
    logger.error(`Have you ran 'npm install'?`);
  }

  process.exit(1);
}
function invokeCommandError ( command , isInternalCommand ) { if ( isInternalCommand ) { return ; } const cwd = process . cwd ( ) ; logger . error ( ` ${ command } ` ) ; if ( cwd . indexOf ( 'skyux-spa' ) === - 1 ) { logger . error ( ` ` ) ; } else if ( ! fs . existsSync ( './node_modules' ) ) { logger . error ( ` ` ) ; } process . exit ( 1 ) ; }
Log fatal error and exit.
This method is called even for internal commands.
In those cases, there isn't actually an error.
@param {string} command
@param {boolean} isInternalCommand
Log fatal error and exit . This method is called even for internal commands . In those cases there isn t actually an error .