I was experiencing the similar problem on Ubuntu 20.04 while using Angular 17. I had previously developed an application that worked fine on Ubuntu 20.04, so I built my new project on top of the old one. However, I was still facing the same problem. I had the same problem with new applications I installed from scratch with different package managers. I think the package-lock.json file causes some incompatibilities while being created. You can try using the package-lock.json file that you used in an old working project. I solved the problem this way.