Skip to content

Error: EMFILE on OSX when requiring lots of files #431

Description

@karl

When requiring 256 files from a single file on OSX browserify throws:

Error: EMFILE, open '/Users/karl/Sites/KVP/GuruFramework/package.json'

From Googling around it looks like this is caused by attempting to open too many files in parallel.

It looks like this could be solved by using the graceful-fs module to limit the number of files opened in parallel.

https://github.com/isaacs/node-graceful-fs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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