This version of CLI is only compatible with Angular versions

Posted Dontla

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了This version of CLI is only compatible with Angular versions相关的知识,希望对你有一定的参考价值。

Angular报错:

root@ubuntu:/home/yg/rv/sdk/rv1.7/rv1126_rv1109/app/ipcweb-ng# ng serve
Your global Angular CLI version (12.2.7) is greater than your local version (12.0.5). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
"CustomWebpackDevServerSchema" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.
This version of CLI is only compatible with Angular versions ^12.0.0-next || >=12.0.0 <13.0.0,
but Angular version 9.0.2 was found instead.

Please visit the link below to find instructions on how to update Angular.
https://update.angular.io/

解决办法,卸载当前本地angular版本,装符合标准的版本

root@ubuntu:/home/yg/rv/sdk/rv1.7/rv1126_rv1109/app/ipcweb-ng# ng serve
"CustomWebpackDevServerSchema" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.
This version of CLI is only compatible with Angular versions ^12.0.0-next || >=12.0.0 <13.0.0,
but Angular version 9.0.7 was found instead.

Please visit the link below to find instructions on how to update Angular.
https://update.angular.io/

怎么一下9.0.2版本一下9.0.7版本的?

我尝试修改ipcweb-ng目录下的package.json和卸载或升级本地的angular,没有效果,

后来把rv1.7原装的ipcweb-ng拷贝过来,按步骤运行,好像没有再报这个错误了,但是报了其他的错误,

以上是关于This version of CLI is only compatible with Angular versions的主要内容,如果未能解决你的问题,请参考以下文章

This version of the rendering library is more recent than your version of ADT plug-in

RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

GoLand调试报错:Version of Delve is too old for this version of Go...

This version of ChromeDriver only supports Chrome version 93 Current browser version is 95.0.4638.54

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

“package ‘ElemStatLearn‘ is not available for this version of R