facebook / memlab

A framework for finding JavaScript memory leaks and analyzing heap snapshots

Home Page:https://facebook.github.io/memlab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

balihoo-jvakotar opened this issue · comments

Node version: 16.19.0
npm: 9.6.4

Here attach screenshot for facing error:
image

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

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.

Closing since this issue cannot be replicated.