Discord.js: Can't install or run "npm install discord.js"

Created on 11 Dec 2016  路  6Comments  路  Source: discordjs/discord.js

Hey guys. So I am having some trouble trying to create a personal discord bot because when I run the cmd prompt and do "npm install discord.js" I get some errors.

+-- UNMET PEER DEPENDENCY node-opus@^0.2.1
`-- UNMET PEER DEPENDENCY opusscript@^0.0.1

npm WARN discord.[email protected] requires a peer of node-opus@^0.2.1 but none was installed.
npm WARN discord.[email protected] requires a peer of opusscript@^0.0.1 but none was installed.
npm WARN [email protected] No repository field.

I've tried googling this and looking at articles but nothing seems to do anything. I did "npm init" and "npm i --save discord.js --no-optional" but it didn't do anything and I couldn't run it. Halp!

question (please use Discord instead)

Most helpful comment

We're planning on changing this. 馃憤

All 6 comments

if you don't need music these can be safely ignored.

I would like to use music. @macdja38

just run

npm i discord.js opusscript
npm i -g ffmpeg-binaries

These dependencies take almost no storage -- why wouldn't these just be included?

We're planning on changing this. 馃憤

any update on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiritto picture tiritto  路  3Comments

PassTheMayo picture PassTheMayo  路  3Comments

xCuzImPro picture xCuzImPro  路  3Comments

Acaretia picture Acaretia  路  3Comments

ghost picture ghost  路  3Comments