Error: EPERM: operation not permitted, scandir

See original GitHub issue

I just downloaded the tool using npm i -g ibackuptool

When I run sudo ibackuptool -l, I receive the following error:

run backups.list
[cli.js] unhandled rejection { Error: EPERM: operation not permitted, scandir     '/Users/mitchelljeppson/Library/Application Support/MobileSync/Backup/'
    at Object.readdirSync (fs.js:786:3)
    at Promise (/usr/local/lib/node_modules/ibackuptool/tools/reports/backups/list.js:10:22)
    at new Promise (<anonymous>)
    at Object.run (/usr/local/lib/node_modules/ibackuptool/tools/reports/backups/list.js:9:12)
    at Promise (/usr/local/lib/node_modules/ibackuptool/tools/index.js:182:12)
    at new Promise (<anonymous>)
    at Object.runReport (/usr/local/lib/node_modules/ibackuptool/tools/index.js:159:10)
    at main (/usr/local/lib/node_modules/ibackuptool/tools/cli.js:196:37)
    at init (/usr/local/lib/node_modules/ibackuptool/tools/cli.js:136:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/ibackuptool/tools/cli.js:91:3)
  errno: -1,
  syscall: 'scandir',
  code: 'EPERM',
  path:
  '/Users/mitchelljeppson/Library/Application Support/MobileSync/Backup/' }

Any thoughts on this? Thanks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
richinfantecommented, Jun 25, 2019

Out of curiosity, have you tried this? It might just be that your terminal app needs some extra permissions for this directory:

http://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/

0reactions
MitchellJeppsoncommented, Jun 25, 2019

That fixed it for me. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm ERR! EPERM : operation not permitted , scandir
Try running as an admin for your build and see if that resolves the permission error. · Clear out your npm cache prior...
Read more >
Error: EPERM: operation not permitted, scandir #17747 - GitHub
I'm opening this issue because: npm is crashing. npm is producing an incorrect install. npm is doing something I don't understand.
Read more >
How to fix this: EPERM: operation not permitted, scandir
This error message prevents any downloads using video downloadhelper. I removed both firefox and video downloadhelper and reinstalled but the ...
Read more >
There was an error: EPERM: operation not permitted, scandir ...
That error is saying that n8n doesn't have permission to access that directory, More information is needed like what are you doing, what...
Read more >
Error: EPERM: operation not permit… | Apple Developer Forums
Please help as this is interfering with my projects. Error: EPERM: operation not permitted, mkdir '/usr/loca'. TypeError: Cannot read property 'get' of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found