I found the solution . For the benefit of others.
- Uninstall your existing node js
- Install nvm using brew
- Install the node 18 lts using nvm
Once this is installed, run npx create-strapi-app strpoj1 --quickstart
and it works like a charm
I found the solution . For the benefit of others.