无法在 mac M1 上设置反应样板
cannot setup react-boilerplate on mac M1
当我克隆存储库并运行此命令“npm 运行 start”时,出现此错误
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
尝试
npm cache clean --force
之后删除 node_modules 和 package-lock。json
npm install
或 yarn
npm start
或 yarn start
希望这能解决您的问题。
当我克隆存储库并运行此命令“npm 运行 start”时,出现此错误
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
尝试
npm cache clean --force
之后删除 node_modules 和 package-lock。json
npm install
或 yarn
npm start
或 yarn start
希望这能解决您的问题。