Errors when installing strapi (npx create-strapi-app@latest my-project)

The idea is to create a text file named .npmrc in your home directory with the content timeout 6000000
However I found a better way. Read this article

Also, some guys have reported issues with nodejs on mac M1. If you are using M1 try installing nodejs 14 and see if that helps