Skip to content

/usr/bin/env: invalid option -- 'S' #78

Closed

Description

@balihoo-jvakotar

Node version: 16.19.0
npm: 9.6.4

Here attach screenshot for facing error:
image

Activity

  1. JacksonGL commented on May 25, 2023

    @JacksonGL
    Member

    Are you using Mac OS or Linux? What is the OS version?

  2. JacksonGL commented on May 25, 2023

    @JacksonGL
    Member

    To quickly fix, use vim $(which memlab) to remove the -S in the shebang of the file:
    #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096 -> #!/usr/bin/env node --expose-gc --max-old-space-size=4096

    Alternatively, change the shebang to #!/usr/bin/env node.

    If you are using a Linux distro (or Mac OS) that is not too old, -S should be supported by env.

  3. JacksonGL commented on May 30, 2023

    @JacksonGL
    Member

    Closing since this issue cannot be replicated.

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