Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 480
randomuser Avatar asked Apr 19 '16 17:04

randomuser


4 Answers

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.

like image 88
Cezar Augusto Avatar answered Oct 26 '22 15:10

Cezar Augusto


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

like image 11
JMM Avatar answered Oct 26 '22 17:10

JMM


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

npm config set optional false
like image 10
Simon D Avatar answered Oct 26 '22 15:10

Simon D


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: [email protected]
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.

like image 3
csga5000 Avatar answered Oct 26 '22 17:10

csga5000