【发布时间】:2023-03-24 10:20:01
【问题描述】:
尽管这些包不在 package.json 文件中,但我正在关注已弃用的 npm WARN。这些软件包在哪里列出?我应该在哪里更改他们的版本?
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN deprecated core-js@2.6.10: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
【问题讨论】:
-
如果你想隐藏这个警告,你只需要安装 fsevents 作为一个可选的依赖。只需执行: npm i fsevents@latest -f --save-optional ..警告将不再是麻烦。
标签: javascript angular npm npm-install package.json