【问题标题】:How to solve npm install throwing fsevents warning on Windows?如何解决 npm install 在 Windows 上抛出 fsevents 警告?
【发布时间】:2021-01-14 09:43:30
【问题描述】:
info fsevents@2.3.1: The platform "win32" is incompatible with this module.
info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.

如果我卸载 fsevents 会怎样?即使它不支持我的机器。 我该怎么做?

【问题讨论】:

    标签: node.js npm yarnpkg


    【解决方案1】:

    Windows 机器不支持 fsevents。

    见:https://www.npmjs.com/package/fsevents

    我收到 EBADPLATFORM Unsupported platform for fsevents 错误。

    很好,没有任何损坏。 fsevents 仅适用于 macOS。跳过其他平台。如果您想隐藏此警告,请向 NPM bugtracker 报告错误,要求他们默认隐藏 ebadplatform 警告。

    /编辑:

    解决您的顾虑:所有与 fsevents 相关的功能都将不起作用,但这也不会破坏您的代码,除非它完全依赖于 fsevents。例如,webpack 在没有 fsevents 的情况下仍然可以正常工作,您只需重新启动它而不是在 npm run dev 时进行热加载

    【讨论】:

    • 每次我运行 ``` yarn install ``` 时它总是显示在终端中,还有 ``` yarn add ``` 仍然
    猜你喜欢
    • 2018-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-18
    • 2015-02-25
    • 1970-01-01
    • 2019-04-05
    • 1970-01-01
    相关资源
    最近更新 更多