'cannot setup react-boilerplate on mac M1

when I clone the repository and run this command "npm run start", this error occurs

npm ERR! code 1
npm ERR! path /Users/hf/Downloads/leadbook-test/node_modules/ngrok
npm ERR! command failed
npm ERR! command sh -c node ./postinstall.js
npm ERR! ngrok - platform darwinarm64 is not supported.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hf/.npm/_logs/2022-03-09T19_45_14_908Z-debug-0.log


Solution 1:[1]

Try

npm cache clean --force

After that delete node_modules and package-lock.json

npm install or yarn

npm start or yarn start

Hope this will fix your issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 httpamit