gpt4 book ai didi

node.js - 如何解决 npm install 在 Windows 上抛出 fsevents 警告?

转载 作者:行者123 更新时间:2023-12-04 15:08:04 26 4
gpt4 key购买 nike

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 会怎样?即使它不支持我的机器。
我该怎么做?

最佳答案

Windows 机器不支持 fsevents。
见:https://www.npmjs.com/package/fsevents

I'm getting EBADPLATFORM Unsupported platform for fsevents error.


It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default.


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

关于node.js - 如何解决 npm install 在 Windows 上抛出 fsevents 警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65716610/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com