3

Error while npm start in Windows 10

After npm install in vscode in my windows machine, I run npm, it starts but it shows the above error. I have cleaned cache but it did not solve.

I have searched on google but exception like this is not seen

events.js:180 throw er; // Unhandled 'error' event ^

RobertBaron
  • 2,817
  • 1
  • 12
  • 19
Addy
  • 31
  • 1

1 Answers1

0

This question is very similar to this one: How can I fix ('throw er; // Unhandled 'error' event') code lifecycle?

For me personally, I fixed this exact issue by adding some missing environment variables to PATH.

C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
Ian Gibblet
  • 552
  • 3
  • 18