1

nodemon was working perfectly in my mac previously, I updated it to the latest version and when I try to start it, I keep getting the below error.

Error:

[nodemon] Internal watch failed: errmap.get is not a function or its return value is not iterable

I tried uninstalling and reinstalling, but the error doesn't seem to go.

Anyone facing a similar issue with nodemon on mac?

Anirudh
  • 2,767
  • 5
  • 69
  • 119
  • 1
    Looks like a bug in `nodemon`. Try installing the previous version: `npm i nodemon@1.18.9` – robertklep Feb 11 '19 at 09:52
  • @robertklep same error – Anirudh Feb 11 '19 at 10:14
  • Tried going back to previously working version `1.18.3` and got the same error – Anirudh Feb 11 '19 at 10:26
  • Follow the steps from it [Follow](https://stackoverflow.com/questions/34662574/node-js-getting-error-nodemon-internal-watch-failed-watch-enospc) – Manzurul Hoque Rumi Feb 11 '19 at 11:26
  • There are various bug reports for this error ([here](https://github.com/remy/nodemon/issues/1499) and [here](https://github.com/remy/nodemon/issues/1512)). There doesn't seem to be a single solution. Are you sure that you're starting the correct version of `nodemon`? Try running `nodemon --version` (as the user that also run it in your regular setup). – robertklep Feb 11 '19 at 14:15

1 Answers1

1

Finally, after trying different solutions, I updated my node version from 10.x to 11.x and it worked.

Anirudh
  • 2,767
  • 5
  • 69
  • 119