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 6876937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:32:24+00:00 2026-05-27T04:32:24+00:00

I’m trying to figure out how to utilize the Connect module to start my

  • 0

I’m trying to figure out how to utilize the Connect module to start my node application, but can’t seem to call connect

Please note that I’m attempting to utilize the commands described here, as "init.d" friendly start, stop and restart commands, not to utilize Connect inside an existing app.

[ec2-user@ip-10-196-170-34 nodeapp]$ node connect
node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module '/home/ec2-user/nodeapp/connect'
    at Function._resolveFilename (module.js:299:11)
    at Function._load (module.js:245:25)
    at Array.<anonymous> (module.js:402:10)
    at EventEmitter._tickCallback (node.js:108:26)

Everything I could think of that might matter:

[ec2-user@ip-10-196-170-34 ~/nodeapp]$ uname -a
Linux ip-10-196-170-34 2.6.35.14-103.47.amzn1.x86_64 #1 SMP Fri Nov 18 04:03:11 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

[ec2-user@ip-10-196-170-34 ~/nodeapp]$ node -v
v0.4.2

[ec2-user@ip-10-196-170-34 ~/nodeapp]$ express -v
2.5.1

[ec2-user@ip-10-196-170-34 ~/nodeapp]$ npm -v
1.0.106

[ec2-user@ip-10-196-170-34 ~/nodeapp]$ npm list
/home/ec2-user/nodeapp
├─┬ connect@1.8.1
│ ├── formidable@1.0.8
│ ├── mime@1.2.4
│ └── qs@0.4.0
├─┬ express@2.5.1
│ ├── mime@1.2.4
│ ├── mkdirp@0.0.7
│ └── qs@0.4.0
├─┬ simpledb@0.0.7
│ └─┬ aws-lib@0.0.5
│   ├── UNMET DEPENDENCY sax 0.1.x
│   └── UNMET DEPENDENCY xml2js 0.1.x
└─┬ socket.io@0.8.7
  ├── policyfile@0.0.4
  ├── redis@0.6.7
  └─┬ socket.io-client@0.8.7
    ├── uglify-js@1.0.6
    ├── websocket-client@1.0.0
    └── xmlhttprequest@1.2.2

[ec2-user@ip-10-196-170-34 ~/nodeapp]$ npm list -g
/usr/local/lib
├─┬ connect@1.8.1
│ ├── formidable@1.0.8
│ ├── mime@1.2.4
│ └── qs@0.4.0
├─┬ express@2.5.1
│ ├─┬ connect@1.8.1
│ │ └── formidable@1.0.8
│ ├── mime@1.2.4
│ ├── mkdirp@0.0.7
│ └── qs@0.4.0
└─┬ npm@1.0.106
  ├── abbrev@1.0.3
  ├── graceful-fs@1.0.1
  ├── ini@1.0.1
  ├─┬ minimatch@0.0.4
  │ └── lru-cache@1.0.4
  ├── node-uuid@1.2.0
  ├── nopt@1.0.10
  ├── proto-list@1.0.0
  ├── request@2.1.1
  ├── rimraf@1.0.8
  ├── semver@1.0.11
  ├── slide@1.1.3
  └── which@1.0.2

One suggestion was to simply run connect from the command line with no node prefix:

[ec2-user@ip-10-196-170-34 nodeapp]$ connect
-bash: connect: command not found
  • 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-27T04:32:24+00:00Added an answer on May 27, 2026 at 4:32 am

    connect is a module that you should be requireing from your own program that creates the server, etc, like:

    var connect = require('connect');
    var server = connect.createServer(...);
    

    Put that in a file like server.js, then you can call:

    node server.js
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into

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.