I was seeing a really high spike in CPU usage while running projects which used node.js, in most cases the CPU usage was way above 100%.
This issue can be really intimidating when you have watchers which watch for file changes, like for eg: webpack.
As usual, my google-fu landed in a couple of Github issues where users mentioned the same problems.
Whats the fix.?
TL;DR install/re-install fsevents
fseventsif you are using MacOS and have not already installed it
npm install fsevents
- Rebuild if you had installed
fseventsbut recently upgraded node version.
npm rebuild fsevents
Hope this helps someone. :spock_hands: