I'm developing a web application on Red Hat's OpenShift platform and I would like to use WebStorm (by JetBrains) as an IDE.
I've got Node.js and npm installed on my machine and I've been able to run Node.js applications with my computer in the past. However when I pull the application from OpenShift and run server.js
from within WebStorm, I get the error message Error: Cannot find module 'express'
.
I want to be able to run and debug my Node.js application on my computer before pushing it to live. Is there a way to do this?