Got it working by changing two lines in node_helper.js (changes in bold).
Line 4:
const {PythonShell} = require(‘python-shell’);
Line 11:
const pyshell = new PythonShell(‘modules/’ + this.name + ‘/facerecognition/facerecognition.py’, { pythonPath: ‘python’, mode: ‘json’, args: [JSON.stringify(this.config)]});