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

  • Home
  • SEARCH
  • 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 7561335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:08:14+00:00 2026-05-30T13:08:14+00:00

I am relatively new to nodejs etc. Anyway I have a program that I

  • 0

I am relatively new to nodejs etc. Anyway I have a program that I am attempting to write that uses a session/authentication system based on this one here:
http://iamtherockstar.com/blog/2012/02/14/nodejs-and-socketio-authentication-all-way-down/
Which is heavily based off this one i think (except updated for more recent versions)
http://www.danielbaulig.de/socket-ioexpress/

(It utilises Node.js, Express.js, Redis & Sockets.io)
Anyway, when I attempt to run my program I get this error:

Error: Cannot find module 'connect'
    at Function._resolveFilename (module.js:332:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:354:17)
    at require (module.js:370:17)
    at Object.<anonymous> (/home/jez/webdir/app1/app.js:62:19)
    at Module._compile (module.js:441:26)
    at Object..js (module.js:459:10)
    at Module.load (module.js:348:31)
    at Function._load (module.js:308:12)
    at Array.0 (module.js:479:10)

The line of code this corresponds to is:

var parseCookie = require('connect').utils.parseCookie;

Now in both tutorials they use this line before calling on the method parseCookie(), however in neither of them do they talk about requireing the ‘connect’ module, only the express module which is built appon connect I believe. My program works perfectly with express, and will run fine before making the adjustments in the above tutorial.

I get the feeling it may be a recent update to node.js/express/socket.io however the tutorial was only written a few days ago?, Any help with this would be greatly appreciated!

  • 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-30T13:08:15+00:00Added an answer on May 30, 2026 at 1:08 pm

    While it is possible to require the connect install that express has as a dependency, I recommend you also install connect in order to use the parseCookie utility. So just install connect in your local node_modules and you’re good to go!

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

Sidebar

Related Questions

I'm relatively new to Nant, what i'd like to do is have a task
Relatively new to JQuery. I've got some code that does a banner swap with
Im relatively new to PHP but have realized it is a powerfull tool. So
Relatively new to python. I recently posted a question in regards to validating that
Relatively new to mySQL so this is probably an easy one: I have a
Being relatively new to the software industry I have come across a question of
I am relatively new to django. I have defined my db schema and validated
Am relatively new to C# and coding in general. I am trying to write
I am relatively new to web development and web applications. I have heard about
I'm relatively new to python, have done it a bit for my physics university

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.