Not compatible with your operating system or architecture: [email protected]

randomuser picture randomuser · Apr 19, 2016 · Viewed 66.3k times · Source

I'm using Ubuntu 15.04. While running the following command:

npm install fsevents

I'm getting following error:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] No repository field.

Has anybody solved this?

Answer

Cezar Augusto picture Cezar Augusto · Jun 5, 2016

I was facing the same issue with this dependecy when building other application.

Just for the sake of knowledge and to people who are not well used to NPM, and thus uncertain about how their applications will behave:

Since fsevents is an API in OS X allows applications to register for notifications of changes to a given directory tree. Running:

npm install --no-optional

Will do the trick, with no drawbacks.