简体   繁体   English

Node.js 中的 fsevents 是什么?

[英]What is fsevents in Node.js?

Whenever I install any packages through npm I keep getting this warning:每当我通过 npm 安装任何软件包时,我都会收到此警告:

npm WARN deprecated fsevents@2.1.3: Please update to v 2.2.x

I tried various methods to update it.我尝试了各种方法来更新它。 But all failed.但都失败了。

So my question is, is this important for Node.js?所以我的问题是,这对 Node.js 重要吗? Can I uninstall it, if possible?如果可能的话,我可以卸载它吗? Or is there any other ways to update or remove the warning?或者有没有其他方法可以更新或删除警告?

Some package you are using is apparently using the v2.1.3 version of the fsevents module , yet that has been specifically deprecated (usually because of known problems or vulnerabilities) and it is recommended to use v2.2.x instead.您正在使用的某些 package 显然使用的是fsevents 模块的 v2.1.3 版本,但已被特别弃用(通常是因为已知问题或漏洞),建议改用 v2.2.x。 If you aren't yourself directly using the fsevents package, then you can grep your node_modules directory and find out which package is using fsevents.如果您不是自己直接使用 fsevents package,那么您可以 grep 您的 node_modules 目录并找出哪个 package 在使用 fsevents。 You can then try several things:然后你可以尝试几件事:

  1. First, make sure you have the latest version of all the packages you are specifically using in case it's already been fixed in one of those.首先,确保您拥有所有您专门使用的软件包的最新版本,以防它已经在其中一个中得到修复。
  2. See if there's an update to the package that is using it that fixes the warning.查看正在使用它的 package 的更新是否修复了警告。
  3. Contact the maintainer of the package that is using it to see if they have an update coming that fixes the warning.联系正在使用它的 package 的维护者,看看他们是否有修复警告的更新。
  4. Fork that package and modify their package.json to update to the latest version of fsevents and then test things to see if it all works appropriately and go with that until the maintainer of the package fixes the core.分叉 package 并修改其 package.json 以更新到最新版本的 fsevents,然后测试一切以查看它是否一切正常,go 直到 package 的维护者修复核心。
  5. File a bug/issue with the maintainer and wait until hey fix it.向维护者提交错误/问题,然后等到他们修复它。

Whenever I install any packages through npm I keep getting this warning:每当我通过 npm 安装任何软件包时,我都会收到以下警告:

npm WARN deprecated fsevents@2.1.3: Please update to v 2.2.x

I tried various methods to update it.我尝试了各种方法来更新它。 But all failed.但都失败了。

So my question is, is this important for Node.js?所以我的问题是,这对 Node.js 重要吗? Can I uninstall it, if possible?如果可能的话,我可以卸载它吗? Or is there any other ways to update or remove the warning?还是有其他方法可以更新或删除警告?

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

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