nginx icon indicating copy to clipboard operation
nginx copied to clipboard

/usr/bin/env: ‘node -r esm’: No such file or directory

Open sousaakira opened this issue 6 years ago • 3 comments

After installing when I try to start the application I have this message

/usr/bin/env: ‘node -r esm’: No such file or directory

my OS is Ubuntu 18.04

sousaakira avatar Aug 15 '18 18:08 sousaakira

One way is to use the docker container. Or you can change the path from "/usr/bin/env" to place where your node is installed ("which node").

uditjuneja avatar Jul 18 '19 03:07 uditjuneja

Some people are also reporting this issue here: https://github.com/localtunnel/server/issues/90 Seems like running with node -r esm ./bin/server instead of npm run start works for a few cases.

krynble avatar Oct 27 '20 22:10 krynble

replace node -r esm ./bin/server with -S node -r esm ./bin/server

Ahmed-Refaat avatar Aug 11 '21 23:08 Ahmed-Refaat