Node.js 如何解决Windows上的npm安装事件警告?

Node.js 如何解决Windows上的npm安装事件警告?,node.js,npm,yarnpkg,Node.js,Npm,Yarnpkg,如果我卸载fsevents呢?即使它不支持我的机器。 我该怎么做呢?windows计算机不支持fsevents 见: 我正在获取EBADPLATFORM不支持的平台,因为fsevents错误 没事,没什么坏的。fsevents仅适用于macos。跳过其他平台。如果要隐藏此警告,请向NPM bugtracker报告一个错误,要求他们在默认情况下隐藏ebadplatform警告 /编辑: 为了解决您的问题:所有与fsevents相关的功能都不会工作,但这也不会破坏您的代码,除非它完全依赖于fseve

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

windows计算机不支持fsevents

见:

我正在获取EBADPLATFORM不支持的平台,因为fsevents错误

没事,没什么坏的。fsevents仅适用于macos。跳过其他平台。如果要隐藏此警告,请向NPM bugtracker报告一个错误,要求他们在默认情况下隐藏ebadplatform警告

/编辑:


为了解决您的问题:所有与fsevents相关的功能都不会工作,但这也不会破坏您的代码,除非它完全依赖于fsevents。例如,如果没有fsevents,webpack仍然可以正常工作,当
npm运行dev

时,您只需重新启动它,而不是进行热加载。每次我运行“纱线安装”时,它都会显示在终端上
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.