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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:56:35+00:00 2026-06-08T10:56:35+00:00

I am unable to use express.js submodules and I think I’m missing something basic

  • 0

I am unable to use express.js submodules and I think I’m missing something basic vis a vis npm. I’m trying to follow this tutorial to build a simple authentication system.

Path to express in app dir:

./node_modules/express/lib/express.js

My app:

var express = require('express');
var app = express.createServer();
app.use(express.bodyDecoder()); // problems happen here

and here’s what happens:

meeeeee$ node app.js 

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
TypeError: Object #<Object> has no method 'bodyDecoder'
    at Object.<anonymous> (/Users/nflacco/Projects/santorinillc/js/auth-demo/app.js:3:17)
    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)
    at EventEmitter._tickCallback (node.js:192:40)

Also for reference, my package.json file:

{
    "name" : "my dirty little app",
    "version" : "0.0.1",
    "dependencies" : 
    {
        "express" : "2.5.9",
        "connect" : "1.8.7",
        "optimist" : "0.3.4"
    }
}
  • 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-06-08T10:56:36+00:00Added an answer on June 8, 2026 at 10:56 am

    The tutorial is using express 1.0.0rc4 and you’re using 2.5.9. The earlier version of express has a dependency on a pre-1.x version of connect.

    bodyDecoder() was renamed to bodyParser() in connect 1.x. Change your problematic line of code to:

    app.use(express.bodyParser());

    You may also want to take a look at the 1.x to 2.x Migration Guide for express to account for any other differences between the version used in the tutorial and the one you are developing against.

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

Sidebar

Related Questions

Im trying to use the fileupload control. Im using Visual Web Developer Express on
When trying to debug a web application configured to use IIS Express 7.5 in
I am unable to use my custom ISubscriptionStorage implementation when I use something other
This question arose from being unable to use uniform-initialisation syntax with the auto keyword
As total JavaScript beginner I am unable to use global variable while trying to
I am unable to use mqueue.h in mac. When I try to include this
I am unable to use the usual i18N localization of GWT to localize a
I am unable to use click() event on a button which is loaded through
I am unable to use a method when I move a piece of code
I'm unable to use date (under OS X 10.6, using bash) without getting the

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.