I\'ve been doing some work with NodeJS on OpenShift and am facing a problem when I\'m trying to run a Mosca server in a Node instance. The error I\'m getting is as follows:
Invalid ELF header usually means that the binary you are trying to execute was compiled on a system that is not compatible with the system you are trying to run it on (compiled on x86, running on x86_64, etc). Are you committing your node_modules directory within your application to git? You should let your OpenShift application install the correct node modules for you and not commit that directory / add it into your git version control system.