I have exactly the same problem with the .NET solution (https://preview.keenthemes.com/asp.net-core/metronic/docs/getting-started). I'm using npm 8.19.2 and node 16.18.0.
I can't delete the node_modules, yarn.lock, package-lock.json files because I don't have them since I never built the project before.