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 during eslint --init: "EACCES: permission denied, scandir […]"

See original GitHub issue

What version of ESLint are you using? v2.11.1

What parser (default, Babel-ESLint, etc.) are you using? I don’t know.

Please show your full configuration: I haven’t created one.

What did you do? Please include the actual source code causing the issue. I’m just getting started using eslint on the command line.

  1. I installed it with npm -g install eslint

  2. then ran eslint --init

  3. I filled in the options like this:

    ? How would you like to configure ESLint? Inspect your JavaScript file(s) ? Which file(s), path(s), or glob(s) should be examined? /Users/q/src/fwr/cp/assets/js/orders.js ? What format do you want your config file to be in? YAML ? Are you using ECMAScript 6 features? No ? Where will your code run? Browser ? Do you use CommonJS? No ? Do you use JSX? No

What did you expect to happen? I expected it to examine the file at /Users/q/src/fwr/cp/assets/js/orders.js and generate a config file.

What actually happened? Please include the actual, raw output from ESLint. It appears to try to access a file under /Library/Application Support/Apple/ParentalControls/Users (which exists, but is owned by root and has drwx------ perms). ESLint dies with this error:

Determining Config: 0% [------------------------------] 0.0s elapsed, eta 0.0s 

EACCES: permission denied, scandir '/Library/Application Support/Apple/ParentalControls/Users'
Error: EACCES: permission denied, scandir '/Library/Application Support/Apple/ParentalControls/Users'
    at Error (native)
    at Object.fs.readdirSync (fs.js:945:18)
    at GlobSync._readdir (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:275:41)
    at GlobSync._readdirInGlobStar (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:254:20)
    at GlobSync._readdir (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:263:17)
    at GlobSync._processReaddir (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:135:22)
    at GlobSync._process (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:130:10)
    at GlobSync._processGlobStar (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:367:10)
    at GlobSync._process (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:128:10)
    at GlobSync._processGlobStar (/usr/local/lib/node_modules/eslint/node_modules/glob/sync.js:370:10)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
quinncomendantcommented, Jan 8, 2017

That’s too bad (that the issue is closed with no takers), I thought it was an easy win. The problem was identified and it would fix a bug and improve performance.

0reactions
kaicataldocommented, Jan 8, 2017

I’m closing this issue because it looks like consensus couldn’t be reached. While we wish we could accommodate all requests, we have limited resources and do need to prioritize. We’ve found that issues failing to reach consensus after 21 days tend to never reach consensus, and as a team have decided to close such issues. This doesn’t mean the idea isn’t interesting or valuable, only that it’s not something the team can commit to at the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: EACCES: permission denied when trying to install ...
First run the command sudo su on your terminal, then give your login password. Finally execute your expected command npm install -g eslint...
Read more >
NPM Install - Resolving EACCES Permissions Denied
Typically when installing a new npm packages globally in your system, you will encounter an error something like Error: EACCESS permission denied something....
Read more >
Resolving EACCES permissions errors when installing ...
Resolving EACCES permissions errors when installing packages globally · Reinstall npm with a node version manager · Manually change npm's default directory.
Read more >
NPM / Error: EACCES: permission denied, scandir - You.com
This command fix the issue. It worked for me: sudo npm install -g --unsafe-perm=true --allow-root.
Read more >
Fix NPM EACCES permission denied errors ... - YouTube
How to fix eacces permission denied errors with npm when installing a global package using Ubuntu. An easy fix is to install using...
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