question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node -r esm: No such file or directory

See original GitHub issue

I am getting this error while running localtunnel on HTTP. Can anyone tell me what can possibly fix this issue?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
DanieleSalatticommented, Oct 28, 2020

Try removing the #! line from bin/server and running it with node -r esm ./bin/server.

Let me know if it works…

0reactions
DanieleSalatticommented, Jan 6, 2021

Hey @zcmgyu

I am not using localtunnel anymore at the moment. I can try looking into it later on if I have time.

Might be worth opening a new issue with more details on your setup for the maintainer to look into 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

run npm command gives error "/usr/bin/env: 'node -r esm'
_compile (internal/modules/cjs/loader.js:654:30). When I try to run it manually I get. /usr/bin/env: node -r esm: No such file or directory ...
Read more >
ENOENT: no such file or directory when running npm install ...
First delete the package-lock.json and then try npm install.
Read more >
Fixing "env: node\r: No such file or directory" on mac for an ...
If you install an npm package using yarn and you get this error it means that the package author is using windows line...
Read more >
Creating ESM-based shell scripts for Unix and Windows with ...
#!/usr/bin/env node\r\n. Running a file with such a hashbang on Unix produces the following error: env: node\r: No such file or directory.
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
The error message was npm ERR! enoent ENOENT: no such file or directory, rename 'D:\\WebApp\\node_modules\\lz-string' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found