问题
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?
回答1:
npm uninstall core-js
then npm i core-js
should work.
来源:https://stackoverflow.com/questions/60079846/npm-warn-deprecated-core-js2-6-11