Skip to content
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

Not working. #206

Open
UmarNoor opened this issue Nov 25, 2023 · 3 comments
Open

Not working. #206

UmarNoor opened this issue Nov 25, 2023 · 3 comments

Comments

@UmarNoor
Copy link

UmarNoor commented Nov 25, 2023

Getting the below error when trying to strt the local server for localtunnel.....
umar@ssdocker001:~/localtunnel-server/bin$ ./server --port 3400 --domain ssdocker001.server.local
/usr/bin/env: ‘node -r esm’: No such file or directory

Tried giving the full absolute path of the node executable but still getting the same error... something like below
#!/usr/bin/env /usr/bin/node -r esm

However, node is properly set up in the PATH variable as below:...
umar@ssdocker001:/usr/bin$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/umar/nodejs/bin

umar@ssdocker001:/usr/bin$ ls -lrt node
lrwxrwxrwx 1 root root 29 Nov 26 01:20 node -> /home/umar/nodejs/bin/node**

Node is working fine without mention of any path as well.....
umar@ssdocker001:~/localtunnel-server/bin$ node
Welcome to Node.js v14.15.0.
Type ".help" for more information.
>

@unkn0wncvm1
Copy link

try running node -r esm ./bin/server it worked for me

@unkn0wncvm1
Copy link

if it worked please close the issue

@evokelektrique
Copy link

$ node -r esm ./bin/server --port 1234
  localtunnel server listening on port: 1234 +0ms

it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants