npm test error for create-react-app

2019-03-01 06:12发布

问题:

I'm getting this error when I run npm run test for a create-react-app application for the sample test provided. I tried looking for the EMFILE error but I'm unable to understand what's going wrong.

Error: Error watching file for changes: EMFILE at exports._errnoException (util.js:1022:11) at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)

回答1:

I had the same issue and discovered watchman was not installed. Run brew install watchman.