You can automate it by using this guide.
Or the one written by me.
Or use official NodeBB guide.
This is not a bug. You have used npm install command in the wrong folder. Use OpenShift Online in your browser to download NodeBB files to /app-root/runtime/repo and it will work as it should.