'bin/server' Command is not Available #138

Closed
opened 2020-10-23 18:52:25 +00:00 by ssghost · 4 comments
ssghost commented 2020-10-23 18:52:25 +00:00 (Migrated from github.com)

I successfully installed localtunnel/server on an Ubuntu 18.04 VPS through ssh.
When I typed bin/server to start the server, this message came out:
/usr/bin/env: ‘node -r esm’: No such file or directory

How to fix it?

I successfully installed localtunnel/server on an Ubuntu 18.04 VPS through ssh. When I typed `bin/server` to start the server, this message came out: `/usr/bin/env: ‘node -r esm’: No such file or directory` How to fix it?
gkosmas commented 2020-10-26 23:03:10 +00:00 (Migrated from github.com)

Same here. Spent some time trying to troubleshoot but no dice.

Same here. Spent some time trying to troubleshoot but no dice.
krynble commented 2020-10-27 22:21:54 +00:00 (Migrated from github.com)

This matter has been discussed here: https://github.com/localtunnel/server/issues/90

Seems like running node -r esm ./bin/server instead of npm run start works for a few cases.

This matter has been discussed here: https://github.com/localtunnel/server/issues/90 Seems like running `node -r esm ./bin/server` instead of `npm run start` works for a few cases.
ikbelkirasan commented 2020-11-13 21:16:43 +00:00 (Migrated from github.com)

Try using Node 10 instead of later versions and it should work.

Try using Node 10 instead of later versions and it should work.
StyleT commented 2021-02-20 06:06:53 +00:00 (Migrated from github.com)

Fixed this issue here https://github.com/StyleT/mytunnel-server It now runs on latest Node.js LTS via npm start.

Fixed this issue here https://github.com/StyleT/mytunnel-server It now runs on latest Node.js LTS via `npm start`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hoelee/server#138