localtunnel / server

server for localtunnel.me
https://localtunnel.me
MIT License
3.05k stars 991 forks source link

npm start raises #193

Open LeeCrey opened 1 year ago

LeeCrey commented 1 year ago

/usr/bin/env: ‘node -r esm’: No such file or directory /usr/bin/env: use -[v]S to pass options in shebang lines

mdleiton commented 1 year ago

node -r esm bin/server --port 3000

dredshep commented 1 year ago

node -r esm bin/server --port 3000

I get this:

file:///home/username/software/localtunnel-server/bin/server:1
SyntaxError: Error parsing /home/username/software/localtunnel-server/node_modules/localenv/package.json: Unexpected token , in JSON at position 772
    at Module._extensions..js (node:internal/modules/cjs/loader:1280:10) {
  path: '/home/username/software/localtunnel-server/node_modules/localenv/package.json'
}

Node.js v18.14.0
PwccaCode commented 1 year ago

do npm install esm@3 inside project folder before running node -r esm bin/server --port 3000

WebKenth commented 8 months ago

do npm install esm@3 inside project folder before running node -r esm bin/server --port 3000

Why is this required to run the project?

SidharthPHariharan commented 6 months ago

npm install esm@3

even developer doesn't know

PwccaCode commented 6 months ago

do npm install esm@3 inside project folder before running node -r esm bin/server --port 3000

Why is this required to run the project?

go figure