Node JS Server other than Drupal server

Events happening in the community are now at Drupal community events on www.drupal.org.
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.js

But 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

Posted by markwk on December 28, 2011 at 5:38pm

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?

Posted by rho_ on December 29, 2011 at 11:51pm

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 express

As 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.

node.js

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /