Error during eslint --init: "EACCES: permission denied, scandir […]"
See original GitHub issueWhat 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.
-
I installed it with
npm -g install eslint
-
then ran
eslint --init
-
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:
- Created 7 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
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.
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.