繁体   English   中英

如何解决 npm 在 Windows 上安装抛出 fsevents 警告?

[英]How to solve npm install throwing fsevents warning on Windows?

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

我收到 EBADPLATFORM Unsupported platform for fsevents 错误。

没事,什么都没坏。 fsevents 仅适用于 macOS。 跳过其他平台。 如果您想隐藏此警告,请向 NPM bugtracker 报告错误,要求他们默认隐藏 ebadplatform 警告。

/编辑:

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM