Getting EACCES: permission denied error on electronize start on MacOS
See original GitHub issue- Version:
- Latest nugets: 5.22.14
- Dot net core: 2.2.300
- Node: 10.15.00
- npm: 6.9.0
- Target: MacOS
Steps to Reproduce:
- Follow readme and video
electronize init
worked fine- run
electronize start
electron.net git:(master) ✗ electronize start
Start Electron Desktop Application...
Microsoft (R) Build Engine version 16.1.76+g14b0a930a7 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 1.68 sec for /Users/x/Documents/git/electron.net/electron.net.csproj.
electron.net -> /Users/x/Documents/git/electron.net/bin/Debug/netcoreapp2.2/osx-x64/electron.net.dll
electron.net -> /Users/x/Documents/git/electron.net/bin/Debug/netcoreapp2.2/osx-x64/electron.net.Views.dll
electron.net -> /Users/x/Documents/git/electron.net/obj/Host/bin/
node_modules missing in: /Users/x/Documents/git/electron.net/obj/Host/node_modules
Start npm install...
npm WARN checkPermissions Missing write access to /Users/x/Documents/git/electron.net/obj/Host/node_modules
npm ERR! path /Users/x/Documents/git/electron.net/obj/Host/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/x/Documents/git/electron.net/obj/Host/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/Users/x/Documents/git/electron.net/obj/Host/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/Users/x/Documents/git/electron.net/obj/Host/node_modules\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/x/Documents/git/electron.net/obj/Host/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/x/.npm/_logs/2019-09-18T18_43_00_745Z-debug.log
ElectronHostHook handling started...
Invoke electron - in dir: /Users/x/Documents/git/electron.net/obj/Host/node_modules/.bin
bash: line 1: ./electron: No such file or directory
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
EACCES: permission denied open '[file]' error on OSX ...
After bundling with electron-builder, running the application shows the error EACCES: permission denied open "file.json".
Read more >[Electron] What Do I Do If the Error Message "permission ...
A customer has integrated the Electron SDK. When the required environment is installed, the message "permission denied" is displayed. Cause ...
Read more >Macos Big Sur port 80 permission denied with root
For years I have been running a local node.js server on port 80 with. sudo npm run. After upgrading npm to 7.6.3 from...
Read more >Unable to install Angular on my Mac, `EACCES` error
User doesn't have access to /usr/local/lib/node_modules. Need to run it as sudo. EACCES is almost always a permission error. I'd suggest ...
Read more >EACCES: Permission Denied On Your Apple MacOS
One way to resolve Error: EACCES: permission denied is to change the permissions of the file or folder that your program is trying...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just as an update if anybody hits the same issue a me - I used the following article to uninstall npm and install it using nvm which manages node and npm versions better than things like homebrew: https://ajaykarwal.com/uninstall-node-and-install-nvm/
Works like a dream now…
I guess this issue can be closed also, since it’s something on my machine… Thanks for all your help.