Skip to content Skip to sidebar Skip to footer

How To Install Discord.js To Your Node.js

i've been following a guide https://www.youtube.com/watch?v=N5kG0bI08EQ In that guide they use npm install discord.js in command prompt and got a success, however when i do it. i

Solution 1:

In order to successfully install discord.js with voice support node-gyp is required. To install node-gyp on windows the easiest solution is to simply run npm install --global --production windows-build-tools then try the installation step again. If it fails try npm install -g npm and restart your computer.

That said from the error provided it seems you are attempting to install discord.js v6 which has not been updated in a very very long time and may no longer function at any level. The discord api is constantly changing and it may be a good idea to update to something like 8.1 which is the last release backwards compatable with code writen for 6.0

Post a Comment for "How To Install Discord.js To Your Node.js"