npm WARN notsup跳过可选依赖项:fsevents@1.0.14不受支持的平台 [英] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14

查看:1064
本文介绍了npm WARN notsup跳过可选依赖项:fsevents@1.0.14不受支持的平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行此项目 https://github.com/Soundnode/soundnode-app 将我的minimatch版本更新为3.10.9后,我收到此错误

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警告可选的跳过选择性依赖性:fsevents@^1.0.0(node_modules \ webpack \ node_modules \ watchpack \ node_modules \ chokidar \ node_modules \ fsevents): npm WARN notsup跳过可选依赖项:fsevents@1.0.14不受支持的平台:wanted {"os":"darwin","arch":"any"}(当前:{"os":"win32","arch": "ia32"})

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 fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

我的配置是 节点v-4.4.2 npm v- 3.10.9 我在32位Windows操作系统上工作

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

推荐答案

这是警告,不是错误.发生此错误是因为fsevents是可选的依赖项,仅当项目在macOS环境上运行时才使用(该软件包提供对Mac OS-X FSEvents的本地访问").

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').

由于您是在Windows上运行项目,因此fsevents被忽略为无关紧要.

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

这里有一个PR可以解决此问题: https://github.com/npm/cli/pull/169

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

这篇关于npm WARN notsup跳过可选依赖项:fsevents@1.0.14不受支持的平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆