title: ChildProcess.onExit and ELIFECYCLE error while using npm install
body: <p>people.</p>
  
  <p>I was installing a npm package called 'koalanlp' via command 'npm install --save koalanlp', and I was continuing to get the following error message.</p>
  
  <hr>
  
  <blockquote>
    <p>gyp ERR! build error </p>
    
    <p>gyp ERR! stack Error: <code>make</code> failed with exit code: 2</p>
    
    <p>gyp ERR! stack     at ChildProcess.onExit
    (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)</p>
    
    <p>gyp ERR! stack     at ChildProcess.emit (events.js:182:13)</p>
    
    <p>gyp ERR! stack     at Process.ChildProcess._handle.onexit
    (internal/child_process.js:240:12)</p>
    
    <p>gyp ERR! System Linux 4.15.0-20-generic</p>
    
    <p>gyp ERR! command "/usr/local/bin/node"
    "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
    "rebuild"</p>
    
    <p>gyp ERR! cwd /home/fromakim/github/Korean_Sentiment/node_modules/java</p>
    
    <p>gyp ERR! node -v v10.13.0</p>
    
    <p>gyp ERR! node-gyp -v v3.8.0</p>
    
    <p>gyp ERR! not ok </p>
    
    <p>npm WARN korean_sentiment@1.0.0 No description</p>
    
    <p>npm ERR! code ELIFECYCLE</p>
    
    <p>npm ERR! errno 1</p>
    
    <p>npm ERR! java@0.9.0 install: <code>node-gyp rebuild</code></p>
    
    <p>npm ERR! Exit status 1</p>
    
    <p>npm ERR! </p>
    
    <p>npm ERR! Failed at the java@0.9.0 install script.</p>
    
    <p>npm ERR! This is probably not a problem with npm. There is likely
    additional logging  output above.</p>
    
    <p>npm ERR! A complete log of this run can be found in:</p>
    
    <p>npm ERR!<br>
    /home/fromakim/.npm/_logs/2018-11-07T20_36_53_905Z-debug.log</p>
  </blockquote>
  
  <hr>
  
  <p>And here is not end part of the log file.</p>
  
  <hr>
  
  <blockquote>
    <p>470 error code ELIFECYCLE</p>
    
    <p>471 error errno 1 </p>
    
    <p>472 error java@0.9.0
    install: <code>node-gyp rebuild</code></p>
    
    <p>472 error Exit status 1 473 error Failed
    at the java@0.9.0 install script. </p>
    
    <p>473 error This is probably not a
    problem with npm. There is likely additional logging output above. </p>
    
    <p>474 verbose exit [ 1, true ]</p>
  </blockquote>
  
  <hr>
  
  <p>And I have tried:</p>
  
  <ol>
  <li>Deleting npm Cache </li>
  <li>Updating npm</li>
  <li>Deleting .node-gyp and retried</li>
  <li>Installing Java again</li>
  <li>Installing node packages necessary</li>
  <li>Downgrading the node version from 11 to 10.13.0</li>
  <li>Deleting node.modules and reinstalling</li>
  </ol>
  
  <p>But neither worked.</p>
  
  <hr>
  
  <p>I am currently using</p>
  
  <ol>
  <li>node version: v10.13.0 </li>
  <li>npm version: v6.4.1 </li>
  <li>OS: Linux Mint 19</li>
  </ol>