【Node】报错:core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended...


错误代码:

core-js@2.6.12: core-js@❤️.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
由于问题太多,不再维护3.3,也不推荐使用。由于V8引擎的怪想,旧core-js版本的特性检测可能会导致速度下降100倍,即使没有填充。请将你的依赖升级到core-js的实际版本。

网上找了一大堆解决方法,排行前几的都不靠谱,最后发现是自己的npm版本太高了,是7.x.x,建议退回 6 版本,成功解决!!

npm install npm@6.14.13  -g

朋友,如果有效,解决了你的问题,欢迎点个赞!!!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM