question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: EACCES: permission denied, mkdir '/path'

See original GitHub issue

when I run this command:

timecut https://bl.ocks.org/micahstubbs/3f439df92579c5bb2902fab15742ba87 --selector "iframe" --left 1 --right 1 --top 1 --bottom 1 --duration=120 --output=/path/to/output/video.mp4

I see this error in the terminal:

[0922/163349.098134:ERROR:gpu_process_transport_factory.cc(1043)] Lost UI shared context.

DevTools listening on ws://127.0.0.1:61493/devtools/browser/1c5d40b3-3f48-4d35-b490-4977aa179363
Going to https://bl.ocks.org/micahstubbs/3f439df92579c5bb2902fab15742ba87...
[0922/163350.219793:INFO:CONSOLE(4)] "graph", source: https://bl.ocks.org/micahstubbs/raw/3f439df92579c5bb2902fab15742ba87/6d432e10e85c9d21497ac7d44ddc85a1bcda64f1/vis.js (4)
[0922/163350.225464:INFO:CONSOLE(49)] "clusters", source: https://bl.ocks.org/micahstubbs/raw/3f439df92579c5bb2902fab15742ba87/6d432e10e85c9d21497ac7d44ddc85a1bcda64f1/vis.js (49)
Page loaded
{ Error: EACCES: permission denied, mkdir '/path'
    at Object.fs.mkdirSync (fs.js:902:18)
    at makeFileDirectoryIfNeeded (/Users/m/.config/yarn/global/node_modules/timesnap/index.js:211:10)
    at /Users/m/.config/yarn/global/node_modules/timesnap/index.js:374:15
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7) errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/path' }
{ Error: EACCES: permission denied, mkdir '/path'
    at Object.fs.mkdirSync (fs.js:902:18)
    at makeFileDirectoryIfNeeded (/Users/m/.config/yarn/global/node_modules/timecut/index.js:45:10)
    at makeProcessPromise (/Users/m/.config/yarn/global/node_modules/timecut/index.js:116:5)
    at /Users/m/.config/yarn/global/node_modules/timecut/index.js:176:16
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7) errno: -13, code: 'EACCES', syscall: 'mkdir', path: '/path' }

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
micahstubbscommented, Sep 24, 2018

nice, thanks for the response @tungs

I’ll summarize what I read 😄

  1. user error on the path supplied
  2. edge case with blocks that have to border - user can omit crop arguments/flags
  3. possible enhancement to give better error message and / or prompt the user to supply a valid path
1reaction
tungscommented, Sep 24, 2018

I’m marking this as an enhancement issue: when using an output path where the user doesn’t have permission, there should be a clearer error than an EACCES error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: EACCES: permission denied when trying to install ...
This problem is well documented in the npm docs: Fixing npm permissions. You have 2 solutions available: Option 1: Change npm's default directory...
Read more >
How to fix ( Error: EACCES: permission denied, mkdir )
This command fixed the issue. It worked like a charm and installed all gulp packages without any directory permission errors.
Read more >
npm install failing (Error: EACCES: permission denied, mkdir ...
This is permission issue on the folder. For some reason subfolder permissions were changed from jenkins to root which caused the issue. sudo ......
Read more >
There was an error: EACCES: permission denied, mkdir
This sounds like the user account n8n is running under doesn't have write permission in your directory. If you manually create the directory...
Read more >
Resolving EACCES permissions errors when installing ...
On the command line, in your home directory, create a directory for global installations: mkdir ~/.npm-global ; Configure npm to use the new...
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