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依赖包版本号~和^的区别
- 下一篇: linux ubuntu QT 下载和安