错误:请将您的依赖项升级到core-js @ 3的实际版本 [英] Error: Please, upgrade your dependencies to the actual version of core-js@3

查看:9155
本文介绍了错误:请将您的依赖项升级到core-js @ 3的实际版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行npm start,但出现错误发生未处理的异常:找不到模块"@ angular-devkit/build-angular"",我也尝试通过使用npm install @angular-devkit/build-angular进行安装,但仍然我一个错误.

I'm trying to run npm start but giving me error "An unhandled exception occurred: Could not find module "@angular-devkit/build-angular" I also tried to install it by using npm install @angular-devkit/build-angular but still getting me an error.

错误"npm WARN不赞成使用的core-js@2.6.11:由于问题的数量,不再维护core-js @< 3,因此不建议使用它.请升级您的依赖项,使其成为Core的实际版本-js @ 3."

Error "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."

如何升级我的依赖项?

推荐答案

您应该能够简单地更新警告消息中要求的core-js模块的版本:

You should be able to simply update the version of the core-js module that is requested within the warning message:

npm install --save core-js@^3

npm具有值得一提的功能,可让您查看哪些包已过期

For what it's worth npm has a nifty feature that lets you see which packages are outdated

npm outdated

您还可以使用更新命令

这篇关于错误:请将您的依赖项升级到core-js @ 3的实际版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆