npm WARN不推荐使用core-js@2.6.11 [英] npm WARN deprecated core-js@2.6.11
本文介绍了npm WARN不推荐使用core-js@2.6.11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
输入$ npm install --save react react-dom next
时,出现以下警告:
When I enter $ npm install --save react react-dom next
, I got this warning:
npm WARN已弃用core-js@2.6.11:不再维护core-js @< 3 并且由于问题的数量,不建议使用.请, 将您的依赖项升级到core-js @ 3的实际版本.
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
更新它,但显示了相同的错误.
I tried updating it with $ npm install --save core-js@^3
, but it shows the same error.
如何更新核心?
推荐答案
npm uninstall core-js
,那么npm i core-js
应该可以工作.
npm uninstall core-js
then npm i core-js
should work.
这篇关于npm WARN不推荐使用core-js@2.6.11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文