简体   繁体   English

npm WARN 已弃用 fsevents@1.2.4:fsevents 1 将在节点 v14+ 上中断

[英]npm WARN deprecated fsevents@1.2.4: fsevents 1 will break on node v14+

I keep getting this npm warning after running npm install.运行 npm 安装后,我不断收到此 npm 警告。 I have deleted and reinstalled npm.我已经删除并重新安装了 npm。 Nothing seems to work.似乎没有任何效果。

npm WARN deprecated fsevents@1.2.4: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

up to date, audited 2107 packages in 26s

94 packages are looking for funding
  run `npm fund` for details

68 vulnerabilities (14 low, 18 moderate, 32 high, 4 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

first try to reset npm cache首先尝试重置 npm 缓存

npm cache clean --force 

then retry to install npm packages然后重试安装 npm 包

if nothing happens, try npm install --no-optional or npm install --force如果没有任何反应,请尝试npm install --no-optionalnpm install --force

hope that works希望有效

The problem isn't with npm, but with your project.问题不在于 npm,而在于您的项目。 It requires (possibly indirectly), fsevents@1.2.4, which is deprecated.它需要(可能是间接地)fsevents@1.2.4,它已被弃用。 You'll need to update your project to require a newer version, eg:您需要更新您的项目以需要更新的版本,例如:

"fsevent": "^2.3.2"

and of course, update your project to work with this version.当然,更新您的项目以使用此版本。

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

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