title: Node JS Module Not Working . Module Not Found
body: <p>I Am Trying To Use An npmjs module named systeminformation in the documentation it is given to use it as it is down below but it gives me an error module not found</p>
  <p>the code from documentation:</p>
  <pre><code>const si = require('systeminformation');
  
   si.cpu()
     .then(data =&gt; console.log(data))
     .catch(error =&gt; console.error(error));
  </code></pre>
  <p>My Code :</p>
  <pre><code>const si = require('systeminformation');
  
  comp=()=&gt;{
      si.cpu()
          .then(data =&gt; console.log(data))
          .catch(error =&gt; console.error(error));
      }
  </code></pre>
  <p>please help me with this I tried reinstalling the node module npm i systeminformation</p>
  <p>The NpmJS Module -- <a href="https://www.npmjs.com/package/systeminformation" rel="nofollow noreferrer">https://www.npmjs.com/package/systeminformation</a></p>