visionmedia/express — Issue #965: Error when trying to install dependencies
Author: siddhion
Created: 2012-01-18 03:06:49+00:00
State: open

I got started with the quick start and hit a dead end when trying to install dependencies using `npm install -d`

```bash

~$ express app_test && cd app_test

create : app_test
create : app_test/package.json
create : app_test/app.js
create : app_test/public
create : app_test/routes
create : app_test/routes/index.js
create : app_test/views
create : app_test/views/layout.jade
create : app_test/views/index.jade
create : app_test/public/javascripts
create : app_test/public/images
create : app_test/public/stylesheets
create : app_test/public/stylesheets/style.css

dont forget to install dependencies:
$ cd app_test && npm install

~/app_test$ npm install -d
npm info it worked if it ends with ok
npm info using npm@1.1.0-beta-4
npm info using node@v0.6.6
npm info preinstall application-name@0.0.1
npm http GET https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/express/3.0.0alpha1-pre
npm http 304 https://registry.npmjs.org/express/3.0.0alpha1-pre
npm ERR! Error: No dist in undefined package
npm ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:515:26)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:508:5
npm ERR! at Object.saved [as oncomplete] (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.32-37-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d"
npm ERR! cwd /home/siddhion/app_test
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.1.0-beta-4
npm ERR! message No dist in undefined package
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/siddhion/app_test/npm-debug.log
npm not ok
```

How to remedy this?