Skip to content

"glob error" code: 'EMFILE', I think due to a very large dependency tree #43

@rjmunro

Description

@rjmunro

I have a project that installs a lot of dependencies and sub-dependencies (I'm not sure if this is an accurate measure, but find node_modules -name package.json | wc -l returns 2909). When I run node ./node_modules/.bin/lockdown-relock, I get a lot of output like:

glob error { [Error: EMFILE, readdir '/Users/rjmunro/ultimate-player/node_modules/protractor/node_modules/request/node_modules/hawk/node_modules/hoek']
  errno: 20,
  code: 'EMFILE',
  path: '/Users/rjmunro/ultimate-player/node_modules/protractor/node_modules/request/node_modules/hawk/node_modules/hoek' }

(EMFILE is related to having too many files open, which is why I suspect the large dependency tree is the issue here. I found some stuff about it here http://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions