This version of CLI is only compatible with Angular versions
生活随笔
收集整理的这篇文章主要介绍了
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的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: NPM依赖包版本号~和^的区别
- 下一篇: Eclipse 动态库调试(联合调试)