galnir / Master-Bot

A Discord music bot and dashboard with slash commands, playlist support, Spotify, music quiz, saved playlists, lyrics, gifs and more
MIT License
464 stars 373 forks source link

I cannot do npm install #147

Closed mihirgarg01 closed 4 years ago

mihirgarg01 commented 4 years ago

Do not open an issue if you simply "copied" code over to your bot/another bot. This is absolutely not recommended and will cause bugs. Also do not open an issue if you modified code and added features and now it's not working right. This is because I can't figure it out and don't have the time to read your code and find out what you did wrong.

Describe the bug When I do npm install discordjs/discord.js discordjs/Commando ffmpeg-static node-opus simple-youtube-api ytdl-core, It gives me a ton of warnings and then at the end like 20 errs. It wont let me use the Commando library without importing this so I am kind of stuck.

To Reproduce Steps to reproduce the behavior:

  1. Download the zip file from github
  2. Unzip the file and open it in Visual Studio Code
  3. Open a terminal and type npm install discordjs/discord.js discordjs/Commando ffmpeg-static node-opus simple-youtube-api ytdl-core

Expected behavior It should import all the libraries.

Screenshots https://imgur.com/v6WKuVC https://imgur.com/v8yN9dR

Desktop (please complete the following information):

Additional context Luv the help 💖

thaddeuskkr commented 4 years ago

There was an NPM outage yesterday, it might be related to that. Can you provide the error log? Status

mihirgarg01 commented 4 years ago

There was an NPM outage yesterday, it might be related to that. Can you provide the error log? Status

Yes Sure!: npm WARN deprecated node-opus@0.3.3: This project is unmaintained. See @discordjs/opus for an alternative. npm WARN deprecated ffmpeg-static@2.7.0: ffmpeg-static@2 won't be updated with new ffmpeg binaries anymore. Use ffmpeg-static@latest. npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno ENOENT npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/discordjs/discord.js.git npm ERR! enoent npm ERR! enoent npm ERR! enoent spawn git ENOENT npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\shai\AppData\Roaming\npm-cache_logs\2020-08-07T06_00_19_013Z-debug.log

mihirgarg01 commented 4 years ago

When I do node . The err msg is this: internal/modules/cjs/loader.js:969 throw err; ^

Error: Cannot find module 'discord.js-commando' Require stack:

galnir commented 4 years ago

All you need to do is follow the instructions. Clone the repo and hit 'npm i' that's it. No need to install the dependencies individually

mihirgarg01 commented 4 years ago

How do you clone the repository? I haven’t coded in a while....

galnir commented 4 years ago

@mihirgarg01 git clone https://github.com/galnir/Master-Bot.git in console

galnir commented 4 years ago

Clone the repo and follow the instructions in the readme. If that doesn't work open a new issue :)