T
T
TaggedBrackets2018-12-17 14:27:22
JavaScript
TaggedBrackets, 2018-12-17 14:27:22

Faced with the problem of loading the discord library in visual code?

I installed Node.js on my laptop.
Created a folder, registered `npm init` in PowerShell. The installation was successful.
In Visual Studio Code, I wrote npm i discord.js in the terminal. Instead of downloading, an error occurred:
npm : The name 'npm' is not recognized as the name of a cmdlet, function, script file, or executable
program. Check the spelling of the name and the presence and correctness of the path,
then try again.
line:1 character:1
+ npm discord.js
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What does the error mean and how to solve it. (User does not have administrator rights)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2018-12-17
@mak_ufo

Why don't commands installed via npm install work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question