Bench start issue socketio.1 | SyntaxError: Use of const in strict mode

Thanks krnkris!

No I don’t think package.json is the problem source.

But your command shell or environment and/or Procfile is the problem?

What do you get when you run these:

frappe@ubuntu:~/frappe-bench$ grep socketio Procfile
redis_socketio: redis-server config/redis_socketio.conf
socketio: /usr/bin/node apps/frappe/socketio.js

frappe@ubuntu:~/frappe-bench$ env | grep SHELL
SHELL=/bin/bash

Maybe save a copy of your Procfile then run ‘bench setup procfile’

If bench start still fails then try this -

In Procfile change this line:

socketio: /usr/bin/node apps/frappe/socketio.js

to this:

socketio: node apps/frappe/socketio.js

Then see if the bench starts…