The installed Angular CLI version is outdated

Error while running ng commands:

The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned .... to perform the update.

Go to your Terminal on your machine and type the following command:

npm install -g @angular/cli@latest

This will fix the Angular CLI version is outdated issue for your ng commands.