M1 Mac shuts down node run on project setup steps

If you have installed the official NodeJS from their website https://nodejs.org/en/

You shouldn’t got those errors.