SyntaxError: Unexpected token with socketio on bench start

Hello,
When I try to install ERPNext everything goes well, until the order or there is a problem:

bench start

I have this error :

08:38:26 socketio.1       | /home/bench/erpnext/apps/frappe/socketio.js:8
08:38:26 socketio.1       | var { get_conf, get_redis_subscriber } = require('./node_utils');
08:38:26 socketio.1       |     ^
08:38:26 socketio.1       |
08:38:26 socketio.1       | SyntaxError: Unexpected token {
08:38:26 socketio.1       |     at exports.runInThisContext (vm.js:53:16)
08:38:26 socketio.1       |     at Module._compile (module.js:373:25)
08:38:26 socketio.1       |     at Object.Module._extensions..js (module.js:416:10)
08:38:26 socketio.1       |     at Module.load (module.js:343:32)
08:38:26 socketio.1       |     at Function.Module._load (module.js:300:12)
08:38:26 socketio.1       |     at Function.Module.runMain (module.js:441:10)
08:38:26 socketio.1       |     at startup (node.js:140:18)
08:38:26 socketio.1       |     at node.js:1043:3

Thanks for your help.

One of the requirements may be missing, try

cd ~/frappe-bench
bench setup requirements

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.