On Openshift, you cannot should not install stuff globally.
Use instead local module, and if you need to run executables (like coffee, mocha, grunt...), launch them from the node_modules\.bin
folder.
--- EDIT ---
As said in the official documentation, it's possible to install stuff globally, but it's not recommended. I guess you should have sufficient right.
the better alternative though is to install them in the home directory of the currently logged user on your local machine/workstation.
If you really need stuff on global, consider putting them into your cartdrige: it will be more handy when scalling on different VMs