#npm install discord.js

11 messages · Page 1 of 1 (latest)

thorny sandal
#

I am trying to install the discord.js but when i run that in visual it tells me

npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1

  • npm i discord.js
  •   + CategoryInfo          : ObjectNotFound: (npm:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
ornate elkBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by staff
civic vault
thorny sandal
#

I installed node.js

civic vault
#

thankfully just installing the latest version of node.js from their website, it takes care of everything for you

thorny sandal
#

i got the latest version from them

#

Node.js v21.3.0

civic vault
#

have you tried restarting your pc, testing it in a console cmd prompt to see if you have it, or tried restarting visual studio?

thorny sandal
#

I hae not. let me try that

civic vault
#

ight lemme know how it goes

thorny sandal
#

wow... the one time in life you get the "have you tried restarting?" it worked. Thank you