question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.js@10.0.1 requires a peer of node-opus@^0.2.1 but none was installed. npm WARN discord.js@10.0.1 requires a peer of opusscript@^0.0.1 but none was installed. npm WARN diana@1.0.0 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!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
amishshahcommented, Sep 12, 2017

We’re planning on changing this. 👍

1reaction
devsnekcommented, Dec 11, 2016

just run

npm i discord.js opusscript
npm i -g ffmpeg-binaries
Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't Install Discord.js · Issue #110 - GitHub
json file where you are attempting to install the library. The first command will create that file for you using the information you...
Read more >
how to install discord.js to your node.js - Stack Overflow
To install node-gyp on windows the easiest solution is to simply run npm install --global --production windows-build-tools then try the ...
Read more >
Installing Node.js - discord.js Guide
With the terminal open, run the node -v command to make sure you've successfully installed Node.js. If it outputs v16.9.0 or higher, great!...
Read more >
discord.js - npm
Start using discord.js in your project by running `npm i discord.js`. ... npm install discord.js yarn add discord.js pnpm add discord.js ...
Read more >
How to install Discord JS for Bot development - YouTube
This is a beginner tutorial explaining the process of installing Discord. JS through NPM, the Node programming language's package manager.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found