S
S
Snowfall_Zh2021-12-31 14:18:07
Node.js
Snowfall_Zh, 2021-12-31 14:18:07

When entering commands on the command line, gulp throws an error. How to fix it?

After reinstalling Windows, Gulp stopped working. For any command, it gives -

npm : The name 'npm' is not recognized as the name of a cmdlet, function, script file, or executable. Check
the spelling of the name and the presence and correctness of the path, then try again.
string:1 character:1
+ npm i
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Node.js, gulp globally installed and Scope ExecutionPolicy set.
Scope ExecutionPolicy -list gives -
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser Undefined
LocalMachine Undefined

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2021-12-31
@Snowfall_Zh

When I use PowerShell I get a similar error, try normal cmd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question