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

Javascriptnode.jsNpmNpm InstallFsevents

Javascript Problem Overview


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: fsevents@1.0.11
npm WARN tutorial@1.0.0 No repository field.

Has anybody solved this?

Javascript Solutions


Solution 1 - Javascript

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.

Solution 2 - Javascript

It's not an error, it's just a warning: it's an optional dependency.

Solution 3 - Javascript

You can tell npm not to install optional dependencies by default using the command line below:

npm config set optional false

Solution 4 - Javascript

If you're getting ERR! not WARN a likely cause of this issue is that you're using a really outdated version of NPM

For me, I shelled into some server, and was like "why won't this work?", getting this error:

npm ERR! Linux 4.4.0-130-generic
npm ERR! argv "/home/william/.nvm/versions/node/v4.4.3/bin/node" "/home/william/.nvm/versions/node/v4.4.3/bin/npm" "install"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.1
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.1.3
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! Please include the following file with any support request:
npm ERR!     /home/william/app/mcard-api/npm-debug.log

Turns out this server (that I only recently acquired) was running npm 2.15.1. I re-installed nvm, and nvm install --lts fixed it.

Solution 5 - Javascript

I had same issue with dependency. Kindly check for the package.json file , add "typings":"^0.8.1" entry under devDependency section. dont forget to add comma before :) Hope it will resolve issue.

Solution 6 - Javascript

I was also facing this error when installing Redux:

$ npm install --save react-redux
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14

What solved the issue was to add --no-optional (argument will prevent optional dependencies from being installed):

npm install --no-optional --save react-redux
            ^^^^^^^^^^^^^

And now it is correctly installed:

$ npm ls redux
ReduxProject@ /home/me/projects/reduxproject
└── [email protected] 

Solution 7 - Javascript

I found if you use "yarn add ." Yarn will exclude the fsevents will not throw an error.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionrandomuserView Question on Stackoverflow
Solution 1 - JavascriptCezar AugustoView Answer on Stackoverflow
Solution 2 - JavascriptJMMView Answer on Stackoverflow
Solution 3 - JavascriptSimon DView Answer on Stackoverflow
Solution 4 - Javascriptcsga5000View Answer on Stackoverflow
Solution 5 - Javascriptsantosh bhoyarView Answer on Stackoverflow
Solution 6 - JavascriptfedorquiView Answer on Stackoverflow
Solution 7 - JavascriptSupa_dave72View Answer on Stackoverflow