zoukankan      html  css  js  c++  java
  • [ng] This version of CLI is only compatible with Angular versions ^10.0.0-beta || >=10.0.0 <11.0.0, [ng] but Angular version 8.1.3 was found instead. [ng] Please visit the link below to ......

    报错:

    [ng] This version of CLI is only compatible with Angular versions ^10.0.0-beta || >=10.0.0 <11.0.0, 

    [ng] but Angular version 8.1.3 was found instead.
    [ng] Please visit the link below to find instructions on how to update Angular.
    [ng] https://angular-update-guide.firebaseapp.com/

    [ERROR] ng has unexpectedly closed (exit code 3).

    解决办法:

    首先ng -v查看一下angular-cli脚手架的版本

     我的显示版本为10.1.6,其它的显示8.1.3,版本不兼容,需要安装一下对应的版本

    具体步骤:

    1.卸载当前的angular/cli

    npm uninstall @angular/cli --save-dev

    2.安装对应版本的angular/cli  在这里我需要安装8.1.3的

    npm install @angular/cli@~8.1.3 --save-dev

  • 相关阅读:
    配置FTP服务
    Tomcat
    LNMP环境配置(下)
    LNMP环境配置(上)
    Ansible---
    Ansible
    正则三剑客-------grep
    Docker仓库的使用与维护
    Docker 引擎的安装 -->>存储库安装
    shell脚本实例
  • 原文地址:https://www.cnblogs.com/mmit/p/13785474.html
Copyright © 2011-2022 走看看