title: Path to Node.js Installation in Ubuntu
body: <p>I am new to Ubuntu (linux).</p>
  
  <p>I installed node.js for a project.</p>
  
  <p>Recently I am getting this error on <code>npm install</code>.</p>
  
  <blockquote>
    <p>Error: "pre" versions of node cannot be installed, use the --nodedir flag instead</p>
  </blockquote>
  
  <p>I found a stack link below as</p>
  
  <p><a href="https://stackoverflow.com/questions/12947145/error-pre-versions-of-node-cannot-be-installed-use-the-nodedir-flag-instea">Node pre error</a></p>
  
  <p>Under the solution it asks for the directory where node.js is installed and currently i am clueless where the nodejs is installed.</p>
  
  <p>Please help me on how can I locate the directory where node.js is installed.</p>