npm WARN不推荐使用core-js@2.6.11:不再维护core-js @< 3,并且由于问题的数量,不建议使用它 [英] 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
问题描述
我在创建新的Angular应用程序时遇到错误-
I'm getting below error while creating a new Angular application -
npm WARN不建议使用的core-js@2.6.11:不再维护core-js @< 3,并且由于问题的数量,不建议使用它.请将您的依赖项升级到core-js @ 3的实际版本.
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.
I tried the solution given in below link but it did not work for me- Error: Please, upgrade your dependencies to the actual version of core-js@3
当我使用'ng --version'命令检查Angular的版本时,我看到<error>
作为以下列出的软件包的版本-
When I check version of Angular using 'ng --version' command, I see <error>
as version for below listed packages -
@angular-devkit/architect
@angular-devkit/core
@angular-devkit/schematics
@schematics/angular
@schematics/update
请问您出了什么问题以及需要做些什么来解决这个问题?
Could you please suggest what went wrong and what needs to be done to fix this?
P.S. -前一天,相同的功能运行良好.并且已经创建的项目在本地运行良好.
P.S. - The same functionality was working fine a day before. And the already created projects are running fine locally.
推荐答案
实际上是缓存问题. npm clean-install
有效.
Indeed the issue was with cache. npm clean-install
worked.
这篇关于npm WARN不推荐使用core-js@2.6.11:不再维护core-js @< 3,并且由于问题的数量,不建议使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!