简体   繁体   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.

What if i uninstall fsevents?如果我卸载 fsevents 会怎样? even though it doesnt support my machine.即使它不支持我的机器。 And how can i do it?我该怎么做?

fsevents is not supported on windows machines. windows 机器不支持 fsevents。

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

I'm getting EBADPLATFORM Unsupported platform for fsevents error.我收到 EBADPLATFORM Unsupported platform for fsevents 错误。

It's fine, nothing is broken.没事,什么都没坏。 fsevents is macos-only. fsevents 仅适用于 macOS。 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.如果您想隐藏此警告,请向 NPM bugtracker 报告错误,要求他们默认隐藏 ebadplatform 警告。

/edit: /编辑:

To adress your concern: All functionality regarding fsevents will not work, but this will also not break your code, unless it relies purely on fsevents.解决您的问题:与 fsevents 相关的所有功能都将不起作用,但这也不会破坏您的代码,除非它完全依赖于 fsevents。 For example, webpack still works just fine without fsevents, you just have to restart it instead of having hotloading when npm run dev例如,webpack 在没有 fsevents 的情况下仍然可以正常工作,你只需要重新启动它而不是在npm run dev时进行热加载

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

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