isaacs/npm — Issue #2053: Error installing express in an express app folder 
Author: siddhion
Created: 2012-01-18 04:24:19+00:00
State: open

I tried to install express via npm after creating an express app but it refuses to install. I get the error

`npm ERR! Error: No dist in undefined package`

Full bash is below

```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/views
create : app_test/views/layout.jade
create : app_test/views/index.jade
create : app_test/routes
create : app_test/routes/index.js
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 express
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" "express"
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

```