Passenger can't startapp

I followed the instructions for installing node with passenger. (I’ve tried node 12.18.2 and 14.6.0 for node)
But I am getting the error:

GLOBAL.PhusionPassenger = exports.PhusionPassenger = new EventEmitter();

ReferenceError: GLOBAL is not defined
at Object. (/usr/share/passenger/helper-scripts/node-loader.js:41:1)
at Module._compile (internal/modules/cjs/loader.js:1236:30)
at Object.Module._extensions…is (internal/modules/cjs/loader.js:1257:10)
at Module.load (internal/modules/cjs/loader.js:1085:32)
at Function.Module._load (internal/modules/cjs/loader.js:950:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47

Any ideas? Any searches on Stack Overflow just shows that it is a bug in the app. So I figure it has to be a configuration thing for dreamhost. Has anyone else got something similar when standing up a node server?

I have tried to restart Passenger by using

$ mkdir -p ~//tmp
$ touch ~//tmp/restart.txt

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