npm install discord.js
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
10 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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 staffyou need to install node.js and the npm command line interface
I installed node.js
thankfully just installing the latest version of node.js from their website, it takes care of everything for you
i got the latest version from them
Node.js v21.3.0
have you tried restarting your pc, testing it in a console cmd prompt to see if you have it, or tried restarting visual studio?
I hae not. let me try that
ight lemme know how it goes
wow... the one time in life you get the "have you tried restarting?" it worked. Thank you
LOL you're welcome