title: Discord bot: Fix ‘FFMPEG not found’
body: <p>I want to make my Discord bot join voice chat but every time I make it I get a error into log(cmd) saying, <code>FFMPEG not found</code>, please help me.</p>
  
  <p><strong>Picture of the error:</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/rdr9h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rdr9h.png" alt=""></a></p>
  
  <p><strong>This is the code:</strong></p>
  
  <pre><code>client.on('message', message =&gt; {
    // Voice only works in guilds, if the message does not come from a guild,
    // we ignore it
    if (!message.guild) return;
  
    if (message.content === '/join') {
      // Only try to join the sender's voice channel if they are in one themselves
      if (message.member.voiceChannel) {
        message.member.voiceChannel.join()
          .then(connection =&gt; { // Connection is an instance of VoiceConnection
            message.reply('I have successfully connected to the channel!');
          })
          .catch(console.log);
      } else {
        message.reply('You need to join a voice channel first!');
      }
    }
  });
  </code></pre>
  
  <p><strong>this is my package.json file:</strong></p>
  
  <pre><code>{
    "name": "xxxtentacion",
    "version": "1.0.0",
    "main": "index.js",
    "scripts": {
      "start": "node index.js",
      "dev": "nodemon index.js"
    },
    "dependencies": {
      "discord.js": "^11.4.2",
      "dotenv": "^6.2.0",
      "ffmpeg": "0.0.4",
      "opusscript": "0.0.6"
    },
    "devDependencies": {
      "nodemon": "^1.18.9"
    }
  }
  </code></pre>