-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
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
Labels
No labels