DEV Community

npm start error - React

Swathi Vennela on March 11, 2021

Hey there, I need help in fixing this error. When I run npm start command, I'm getting this error. Please help me out in fixing this. events.js:...
Collapse
 
retronav profile image
Pranav Karawale

Does it happen every time you run the command or only at specific times? By looking at the error code one can point out that too many applications are watching the same directory. You can try some solutions:

  • Clearing /tmp
  • Running npm dedupe

If that's not helpful, then you can try increasing the inotify watch limit (assuming that's a GNU/Linux based OS). Check out this link or this (macOS)

Collapse
 
hey_yogini profile image
Yogini Bende

Will be easy to understand if you can share more information like project structure, where you are running the command etc.

Collapse
 
swathivennela profile image
Swathi Vennela

Thanks everyone, it got fixed when i changed the command to "sudo npm start", as I work on Ubuntu