0

I'm new to development and I was trying out angular and after I ran "npm install -g @angular/cli" everything got installed properly but when I ran "ng version", I get this error. Can anyone please guide me with this

cmd output

I tried looking up compatible versions on the Angular docs and API website but there's nothing about node version 20.9.0 not being supported

4
  • 1
    Hi, you can find a table of supported versions here: angular.io/guide/versions Commented Nov 2, 2023 at 10:28
  • Hey James. I did confirm with this table that my current versions were supported but I'm still getting that error message that you can see in the linked image Commented Nov 2, 2023 at 10:32
  • 1
    Where are you seeing that Node v20 is supported? Angular 16.2.x requires Node ^16.14.0 or ^18.10.0 Commented Nov 2, 2023 at 10:44
  • I get it now. I thought ^16 meant node v 16 or higher. I'm sorry about the confusion. Thanks James Commented Nov 2, 2023 at 12:09

1 Answer 1

2

Your version of Node is too new (20) for Angular version 16. According to the compatibility matrix, Angular 16 needs node 16 or 18, not anything newer.

Compatibility List - Angular CLI version,Angular version,Node.js version,TypeScript version, RxJS version are included here.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.