Giter Site home page Giter Site logo

Comments (5)

TehSeph avatar TehSeph commented on May 18, 2024 3

@rogafe Do npm init and follow the steps and fill in the information for your bot.
Then do npm i --save discord.js --no-optional after completing all the steps.

The warnings are because NPM is failing to find a package.json file where you are attempting to install the library. The first command will create that file for you using the information you give it. The second command installs the library, like you have already done, but with the --save flag which will add it to the file created in the first step.

As @abalabahaha said above, the library is installing fine but NPM is warning you that it failed to find a package.json file and thus also can't find the 4 fields in the other warnings which are soft-requirements for all public packages. You could technically use the library as it is installed now, but any time you go to install another package NPM will spit out the same warnings until you have fixed it.

from discord.js.

brussell98 avatar brussell98 commented on May 18, 2024

Just to make sure, you are running this in the root directory of the bot and it contains a package.json file right?
image

from discord.js.

abalabahaha avatar abalabahaha commented on May 18, 2024

Notice the "WARN". It's a warning, but it does not break your installation. Your installation should be fine,

from discord.js.

rogafe avatar rogafe commented on May 18, 2024

Thank you all for your reply, I reinstate the server and everything works
Thanks Rogafe

from discord.js.

jelliots2 avatar jelliots2 commented on May 18, 2024

I'm having issues installing discord.js too. It gives me the same warnings. I tried to use npm init and the other command from Seph but it gives me an error saying "no capital letter can be used" even though there arent caps in it. help pls.

from discord.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.