npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]

Aishwary Tiwari picture Aishwary Tiwari · Oct 24, 2016 · Viewed 125.1k times · Source

I`m trying to run this project https://github.com/Soundnode/soundnode-app after updating my minimatch version to 3.10.9, im getting this error

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\webpack\node_modules\watchpack\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

my configuration is Node v - 4.4.2 npm v- 3.10.9 im working on 32 bit windows OS

Answer

piotr.d picture piotr.d · Nov 7, 2016

It's a warning, not an error. It occurs because fsevents is an optional dependency, used only when project is run on macOS environment (the package provides 'Native Access to Mac OS-X FSEvents').

And since you're running your project on Windows, fsevents is skipped as irrelevant.

There is a PR to fix this behaviour here: https://github.com/npm/cli/pull/169