运行npm安装后,我一直收到这个npm警告。我已经删除并重新安装了npm。似乎什么都起不到作用。
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.发布于 2022-08-14 19:22:02
首先尝试重置npm缓存
npm cache clean --force 然后重试安装npm软件包
如果什么都没有发生,请尝试npm install --no-optional或npm install --force
希望能起作用
发布于 2022-08-14 19:24:19
问题不在于npm,而在于你的项目。它需要(可能是间接的) fsevents@1.2.4,这是不推荐的。您需要更新项目以要求更新版本,例如:
"fsevent": "^2.3.2"当然,更新您的项目以使用此版本。
https://stackoverflow.com/questions/73354429
复制相似问题