npm报错core-js is no longer maintained
core-js@2.6.12: core-js@<3.23.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. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
核心-js@2.6.12:core js@<3.23.3不再维护,由于问题的数量,不建议使用。由于V8引擎的突发奇想,旧core js版本中的功能检测可能会导致减速高达100倍,即使没有多填充。某些版本存在web兼容性问题。请将您的依赖项升级到core js的实际版本。
在用npm install安装插件的时候,报了这个错误,简单的来说意思是core.js的版本太低了,现在已经不支持了,网上给出的方案也多是升级core.js的版本。
1 | npm install --save core-js@^3 |
经过实测,发现npm的版本也会影响core.js的安装,如果npm 的版本过于新的话,即便是升级core.js版本仍然会报错,需要相应的降低的npm 的版本:
1 | npm install npm@6.14.13 -g |
具体的版本,大家可以根据自己的情况去决定。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 wn244的个人博客!
