node-mac-permissions icon indicating copy to clipboard operation
node-mac-permissions copied to clipboard

MacBook M1 - SIGABRT - Script to fix

Open aidv opened this issue 1 week ago • 0 comments

node-mac-permissions was causing issues when building my app on an M1 MacBook.

I narrowed down the issue and wrote some some instructions.

While in the root folder of your project, run these commands in the exact sequence:

npm install

rm -rf node_modules/*/build node_modules/*/out
rm -rf node_modules package-lock.json

npm install
rm -rf node_modules/*/build node_modules/*/out

npm i node-mac-permissions

rm -rf node_modules/socks
npm install [email protected] --ignore-scripts --no-save
rm -rf node_modules/*/build node_modules/*/out

rm -rf node_modules/smart-buffer
npm install smart-buffer --ignore-scripts --no-save
rm -rf node_modules/*/build node_modules/*/out

npm i node-mac-permissions --no-save
rm -rf node_modules/*/build node_modules/*/out

Important note

I could not automate the above instructions in neither a .sh script nor a .js script. Those commands must be executed manually.

aidv avatar Dec 14 '25 09:12 aidv