npm install not pulling in devDependencies

I have npm v 1.2.32

When I run: $npm install mongo-migrate

it does not install mongodb which is a devDependency.

What am I doing wrong?

Although not directly related to this question, it may be of interest to some to know that if environment variable NODE_ENV is set to production, npm will ignore devDependencies when executing npm install.

When you install a package from the NPM repository, dev dependencies won't automatically be installed as well (because those dependencies shouldn't be necessary to get the main package working properly).

You need to explicitly instruct npm to install dev dependencies too:

npm install mongo-migrate --dev