Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6988169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:02:25+00:00 2026-05-27T19:02:25+00:00

Where do I have to install Now.js and express.js to access it from the

  • 0

Where do I have to install Now.js and express.js to access it from the web folder?

My web-folder is located here: /var/www/virtual/domain.com/htdocs and I’m using node v.0.6.6

But when I install now.js with “npm install now” in the root folder, I get an error when I want to run my server.js file:

var html = require('fs').readFileSync(__dirname+'/index.html');
var server = require('http').createServer(function(req, res){
  res.end(html);
});
server.listen(8080);

var nowjs = require("now");
var everyone = nowjs.initialize(server);

everyone.now.distributeMessage = function(message){
  everyone.now.receiveMessage(this.now.name, message);
};

Error: Cannot find module ‘now’

Do I have to set the node_path somewhere? Or do I have to place the now.js file into my webfolder?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:02:26+00:00Added an answer on May 27, 2026 at 7:02 pm

    NPM will install now and express in the folder where you are when you execute the install command. NPM will create a folder called node_modules and put them there. If you have a file you need to run named server.js, make sure it’s at the same level as node_modules.

    If you just want to install them locally and use them everywhere do it like so:

    npm install now -g

    The g flag stands for ‘globally’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed VisualStudio Express C# in my box. Now I going to install
I already have VS c# express installed. And now I want to install VS
After I went to http://www.microsoft.com/web to get the IIS Express and SQL CE my
I'm on debian-6. I have install ant,tomcat6,openjdk-6-jre. Now from eclipse which project would i
First I have install Mac 10.6.3 on my system now I want to install
I have rooted my device and I have install busybox. Now I want to
I have go TCPDF setup in my cake php install and am now trying
i have mac preinstalled svn at ->/usr/bin/svn i have macport install svn at -->opt/local/var/macports/software/subversion/1.6.3_0/opt/local
I have Visual Studio web developer Addison , Visual Basic 2005 Express Edition, Visual
I have installed MS Visual Web Developer 2010 Express and created the dll and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.