npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: 不支持的 fsevents 平台 [英] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents

查看:43
本文介绍了npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: 不支持的 fsevents 平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行这个项目.将 minimatch 版本更新到 3.10.9 后,出现以下错误:

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_moduleswebpack
ode_moduleswatchpack
ode_moduleschokidar
ode_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.14: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})

我的配置:

Node v - 4.4.2
npm v - 3.10.9
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 SKIPPING OPTIONAL DEPENDENCY: 不支持的 fsevents 平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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