npm WARN 已弃用 core-js@2.6.11

npm WARN deprecated core-js@2.6.11

当我输入 $ npm install --save react react-dom next 时,我收到了这个警告:

npm WARN deprecated core-js@2.6.11: core-js@<3 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.

我尝试用 $ npm install --save core-js@^3 更新它,但它显示相同的错误。

如何更新核心?

npm uninstall core-js 然后 npm i core-js 应该工作。