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.

I get an error when I do npm install --save discord-giveaways

npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "discord-giveaways" under a package
npm ERR! also called "discord-giveaways". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR!     <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\akyra\AppData\Roaming\npm-cache\_logs\2020-10-21T12_29_57_756Z-debug.log

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Dragonizedpizzacommented, Dec 7, 2020

Yes, I sorted that out. It was very careless of me, I thought I’d done it on my bot’s folder.

On Mon, Dec 7, 2020 at 1:44 PM Androz notifications@github.com wrote:

Closed #114 https://github.com/Androz2091/discord-giveaways/issues/114.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Androz2091/discord-giveaways/issues/114#event-4078282764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ3RITEJD5FCBI7YEPW3VSDSTSFHVANCNFSM4SZW3PMQ .

0reactions
Androz2091commented, Dec 7, 2020

@Dragonizedpizza looks like you downloaded the files of the package and tried to install it in the downloaded folder. Instead, you should install it in your bot’s folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
npm install error from the terminal - Stack Overflow
Can you elaborate on what you are trying to do? If npm runs at all, it means node is already installed. npm install...
Read more >
Common Errors - npm - w3resource
This tutorial is dedicated to some of the common errors that you can encounter while working with npm. Random Errors -one place to...
Read more >
NPM install error - Material Design for Bootstrap
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
How to Fix the "cannot find module" Error · delete the node modules folder by running rm -rf node_modules · delete package.lock.json file...
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