Search code examples
reactjsmacosapple-m1react-boilerplate

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

  • 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.