skip to Main Content

I am getting the below error when trying to run the angular solution through VS Code.

This version of CLI is only compatible with Angular versions ^18.0.0,
but Angular version 13.3.12 was found instead.

Below are the version details

Angular CLI: 13.3.10

Node: 19.9.0 (Unsupported)

Package Manager: npm 10.7.0

Angular: 13.3.12

Can someone please help me provide a solution so that i can run the solution successfully

2

Answers


  1. Use the locally installed version of Angular CLI rather than the global version.

    1. Install the local version of Angular CLI: npm install –save-dev @angular/[email protected]
    2. Run Angular CLI commands using npx: npx ng serve / "set NODE_OPTIONS=–openssl-legacy-provider && node –max_old_space_size=10000 ./node_modules/@angular/cli/bin/ng serve"
    Login or Signup to reply.
  2. You can install node version 16 using nvm to run the angular application, its an immediate solution.
    And going forward please update your angular to latest version 18 to work on latest.
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search