Skip to content

Error: EACCES: permission denied, scandir '/etc/cups/ssl' #38544

@carlitorweb

Description

@carlitorweb

What steps will reproduce the bug?

I have a node/express api, and when try run Mochajs for run tests, a error related with node show up.

How often does it reproduce? Is there a required condition?

Each time I run mocha or npm run test script

What is the expected behavior?

A successful running process

What do you see instead?

Error: EACCES: permission denied, scandir '/etc/cups/ssl'
    at Object.readdirSync (fs.js:1021:3)
    at GlobSync._readdir (/node_modules/glob/sync.js:288:41)
    at GlobSync._readdirInGlobStar (/node_modules/glob/sync.js:267:20)
    at GlobSync._readdir (/node_modules/glob/sync.js:276:17)
    at GlobSync._processReaddir (/node_modules/glob/sync.js:137:22)
    at GlobSync._process (/node_modules/glob/sync.js:132:10)
    at GlobSync._processGlobStar (/node_modules/glob/sync.js:380:10)
    at GlobSync._process (/node_modules/glob/sync.js:130:10)
    at GlobSync._processGlobStar (/node_modules/glob/sync.js:383:10)
    at GlobSync._process (/node_modules/glob/sync.js:130:10)
    at GlobSync._processGlobStar (/node_modules/glob/sync.js:383:10)
    at GlobSync._process (/node_modules/glob/sync.js:130:10)
    at new GlobSync (/node_modules/glob/sync.js:48:10)
    at Function.globSync [as sync] (/node_modules/glob/sync.js:26:10)
    at lookupFiles (/node_modules/mocha/lib/cli/lookup-files.js:91:24)
    at /node_modules/mocha/lib/cli/collect-files.js:36:39
    at Array.reduce (<anonymous>)
    at module.exports (/node_modules/mocha/lib/cli/collect-files.js:34:26)
    at beforeRun (/node_modules/mocha/lib/cli/watch-run.js:123:24)
    at Object.run (/node_modules/mocha/lib/cli/watch-run.js:264:25)
    at FSWatcher.<anonymous> (/node_modules/mocha/lib/cli/watch-run.js:184:14)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions