npm run test getting: “Error: `fsevents` unavailable (this watcher can only be used on Darwin)”

I don’t know this create-react-app based project doesn’t include fsevents if it’s a required dependency to run ‘npm run test’, but the easy answer to this is to install and add it to my dev dependencies:

npm i fsevents --save-dev

Done.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.