Z
Z
Zhenia Bel2021-04-17 22:00:52
Node.js
Zhenia Bel, 2021-04-17 22:00:52

I entered npm init -y in VS code and gave such an error, what should I do?

It's in PowerShell
\Desktop\Trade bot> npm init -y
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 init -y
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This is in cmd
\Desktop\Trade bot>npm init -y
'npm' is not recognized as an internal or external command,
operable program or batch file.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alexbprofit, 2021-04-17
@alexbprofit

You don't have Node.js in your PATH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question