Can’t Instlling Angular on my MacBook Air M1 chip, its a problem i hav’t seen like before

The problem starts when I give the command

sudo npm install -g @angulat/cli@17

1- This strange error appears to me
enter image description here

2- Despite my choice of version 17, after querying the package, it appears as version 18
And Angular writes to me undefined
enter image description here

3- After that, if I create a new Angular project, assuming that the package has been downloaded, the folder appears, but with many files that do not exist
enter image description here

I searched a lot and did not find a solution to this problem, and I did not find anything similar to it at least, so I do not know if there is a mistake in my laptop or if I just did not do it correctly
I hope to find someone to help me with this matter because it has greatly hindered my development in the field of front-end
Thank you in advance

I followed the steps in the videos correctly, but this problem appeared to me and I searched a lot and did not find anything similar or a solution.
My work was disrupted a lot because of this.