title: Why does running app.js display Error: Cannot find module 'discord.js'
body: <p>I am coding a bot for Discord and when I run app.js from the cmdbox it keeps saying:   </p>
  
  <pre><code>Error: Cannot find module 'discord.js'  
      at Function.Module._resolveFilename (module.js:325:15)  
      at Function.Module._load (module.js:276:25)  
      at Module.require (module.js:353:17)  
      at require (internal/module.js:12:17)  
      at Object.&lt;anonymous&gt; (C:\Users\Name\Desktop\RoseluckJS\app.js:1:79)  
      at Module._compile (module.js:409:26)  
      at Object.Module._extensions..js (module.js:416:10)  
      at Module.load (module.js:343:32)  
      at Function.Module._load (module.js:300:12)  
      at Function.Module.runMain (module.js:441:10)
  </code></pre>
  
  <p>I've already tried to delete the node_modules and then run npm i --save<br>
      discord.js --no-optional again, I have also tried doing npm cache clear then   npm i --save discord.js again but it didn't work. Here is my code for my app.js.</p>
  
  <pre><code>const Discord = require('discord.js');
      const client = new Discord.client();
  
          const settings = require('./settings.json');
  
          client.on('ready',() =&gt; {
            console.log('I\'m Online\nI\'m Online')
          });
  
          client.on('message', message =&gt; {
             if (message.content === 'ping') {
  
             }
  
          });
  
          client.login(settings.token);
  </code></pre>