【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