错误:请将您的依赖项升级到 core-js@3 的实际版本 [英] Error: Please, upgrade your dependencies to the actual version of 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.
Error "npm WARN deprecated core-js@2.6.11: core-js@<3 不再维护,由于问题数量不推荐使用.请将您的依赖项升级到核心的实际版本-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
您还可以使用 update 命令将软件包更新到最新版本
You can also update packages to the latest versions using the update command
这篇关于错误:请将您的依赖项升级到 core-js@3 的实际版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!