Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Requiring fs-extra makes binary nonexecutable for child_process #850

Description

@sergejostir

If I require fs-extra package in my entry script, then using fork or spawn on another script from the package, it errors out with EACCES (it appears as the binary becomes nonexecutable). However, if you re-run the binary, sometimes it will start working on second attempt.

Anyone else experiencing the same problem?

The problem seems to appear when the script that spawns child process requires fs-extra, and the "child process" script does it too. If either of them do not require fs-extra, then everytihng works fine. I tested with node10 and node12.

Edit: "request" is also one of the packages that produces the same problem.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions