1

When I enter $ npm install --save react react-dom next, I got this warning:

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.

I tried updating it with $ npm install --save core-js@^3, but it shows the same error.

How can I update core?

Ctorres
  • 468
  • 6
  • 19
  • Using "$ npm --depth 9999 update" will update top level package, also recursively inspect all dependencies. npm update: https://docs.npmjs.com/cli-commands/update.html – OO7 Feb 05 '20 at 20:45

1 Answers1

2

npm uninstall core-js then npm i core-js should work.

Hasan Sefa Ozalp
  • 6,353
  • 5
  • 34
  • 45