Discord.js spawn EACCES


I am using discord.js for a bot. The bot has music functionalities.

songc.join().then(connection =>{bot.recentstream = connection.playStream(${song.stream_url}?client_id=${bot.soundcloud});})

It gives an error: (node:17622) UnhandledPromiseRejectionWarning: Error: spawn EACCES


Please try to run it in localhost, if it doesn’t give the same error then I can take a look at your project if you’d like to.


I have been running it in localhost, it has no problems, my code here


Thanks for responding, however I made a new project, uploaded the files and boom, it works.