js-bson error - Mosca (MQTT Broker) on OpenShift

后端 未结 1 561
無奈伤痛
無奈伤痛 2021-01-27 05:43

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:

相关标签:
1条回答
  • 2021-01-27 05:43

    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.

    0 讨论(0)
提交回复
热议问题