Search code examples
node.jswindowsnpmfsevents

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents


I'm trying to run this project. After updating minimatch version to 3.10.9, I'm getting the following 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:

Node v - 4.4.2
npm v - 3.10.9
32 bit windows OS

Solution

  • 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