Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Failing with Cannot find module 'connect/utils'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
CarbonMan  
View profile  
 More options Jul 23 2010, 8:29 am
From: CarbonMan <paul.hem...@gmail.com>
Date: Fri, 23 Jul 2010 05:29:08 -0700 (PDT)
Local: Fri, Jul 23 2010 8:29 am
Subject: Failing with Cannot find module 'connect/utils'
I am new to Linux, Git, node.js and Express but here we go...
I can run node, and now trying to run Express. My program looks like
this:

var app = require('/node/express/lib/express').createServer();

app.get('/', function(req, res){
    res.send('hello world');

});

app.listen(3000);

It is failing with :
module:243
throw new Error("Cannot find module '" + request + "'");
            ^
Error: Cannot find module 'connect/utils'
    at loadModule (module:243:13)
    at require (module:374:12)
    at Object.<anonymous> (/node/express/lib/express/view.js:13:12)
    at Module._compile (module:423:23)
    at Module._loadScriptSync (module:433:8)
    at Module.loadSync (module:306:10)
    at loadModule (module:251:12)
    at require (module:374:12)
    at Object.<anonymous> (/node/express/lib/express/server.js:14:12)
    at Module._compile

Any help would be appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kadir Pekel  
View profile  
 More options Jul 23 2010, 8:34 am
From: Kadir Pekel <kadirpe...@gmail.com>
Date: Fri, 23 Jul 2010 15:34:19 +0300
Local: Fri, Jul 23 2010 8:34 am
Subject: Re: Failing with Cannot find module 'connect/utils'

Hi CarbonMan,

if the path is relative, try putting '.' (dot) in the beginning of the path.

Something like

var app = require('./node/express/lib/express').createServer();

Hope this helps.

--
Kadir Pekel

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
vision media [ Tj Holowaychuk ]  
View profile  
 More options Jul 23 2010, 10:17 am
From: "vision media [ Tj Holowaychuk ]" <t...@vision-media.ca>
Date: Fri, 23 Jul 2010 07:17:10 -0700
Local: Fri, Jul 23 2010 10:17 am
Subject: Re: Failing with Cannot find module 'connect/utils'

You need "connect" installed as well. As mentioned on the site
there are several ways to do so, however I suggest:

    $ curl -# http://expressjs.com/install.sh | sh

--
Tj Holowaychuk
Vision Media
President & Creative Lead

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »