Posted by manuelBS on December 28, 2011 at 5:32pm
Hey, i have my first steps with node.js and drupal. At first, I have installed Node.js on an ubuntu 10.11 Server. Drupal with Apache runs in another Server. Now I have no idea how to install the application to get node.js work.
What I understand is to have a directory on the node.js server where I put the server.js in. Now if i try to start the node.js server with
cd /var/node/server //the server.js is in here
node server.jsBut that throws an exception saying "Error: Cannot find module 'express'"
I am almost sure that I forgot some things and have some architectual problems...So I would be very happy if anybody could help me getting this "cool thing" work.
chers!

Comments
Invest in studying up on
Invest in studying up on node.js and sysadmin for linux. I don't think this is the forum for that kind of question when you can just google how to setup node.js on ubuntu.
Do you have express installed?
The first thing I would check is that you have express installed with your node instance. I would highly suggest using npm if you aren't already. It makes installing something like express or socket.io as easy as:
npm install expressAs markwk suggested there are many resources on getting node.js (along with npm, express, soket.io, etc) up and running. Felix's Node.js Guide is a good start. Good luck.