Skip to content

MacBook M1 - SIGABRT - Script to fix #82

@aidv

Description

@aidv

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 socks@2.8.7 --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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions