Strapi installation fails on Mac M1

I found the solution . For the benefit of others.

  1. Uninstall your existing node js
  2. Install nvm using brew
  3. Install the node 18 lts using nvm
    Once this is installed, run npx create-strapi-app strpoj1 --quickstart
    and it works like a charm