node -r esm: No such file or directory
See original GitHub issueI am getting this error while running localtunnel on HTTP
. Can anyone tell me what can possibly fix this issue?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try removing the
#!
line frombin/server
and running it withnode -r esm ./bin/server
.Let me know if it works…
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 😃