-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/bin/env: ‘node -r esm’: No such file or directory #223
Comments
edit bin/server and add -S before node -r esm #!/usr/bin/env -S node -r esm Read more here: |
Thanks for answer. Will try it out |
I have add -S as instructed However I got follow error node[57945]: void node::fs::InternalModuleStat(const v8::FunctionCallbackInfov8::Value&) at ../src/node_file.cc:1037Assertion failed: (args.Length()) >= (2)----- Native stack trace ----- 1: 0xf76da7 node::Assert(node::AssertionInfo const&) [node] ----- JavaScript stack trace ----- 1: /home/lomei/localtunnel-server/node_modules/esm/esm.js:1:34535 Aborted |
This is a permissions or incompatibility error,
reinstall esm but as global with root permission and see if that resolves the issue (don't forget to remove the local esm)
`npm uninstall esm`
`npm i esm -g`
|
After bin/server --port 1234, have the following error
/usr/bin/env: ‘node -r esm’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
I have google and no relevant information to correct it. What is the issue here and how to fix it?
The text was updated successfully, but these errors were encountered: