nginx
nginx copied to clipboard
/usr/bin/env: ‘node -r esm’: No such file or directory
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
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").
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.
replace node -r esm ./bin/server with -S node -r esm ./bin/server