lloyd/myfavoritebeer.org — Issue #50: Selected version of express not compatible with current node.js
Author: MichaelHackett
Created: 2012-02-17 21:07:08+00:00
State: open

Preface: I'm a complete newbie wrt to node.js, et al., but I am under the impression that this project is intended to be a turnkey demo that should just work out of the box (clone). So I think that any issues that prevent this for the average user are worth considering, if this project is still relevant. Also, I'm running on Mac OS 10.7.3 (Lion).

So when I follow the README instructions, I download the current default version of node.js from nodejs.org, which is 0.6.10. I then try to run "npm install", and it fails, apparently because the version of express named in this project's package.json (2.4.6) is reporting that it is compatible only with node 4.1-4.x.

Shell log follows:

```
$ npm install
npm http GET https://registry.npmjs.org/express/2.4.6
npm http GET https://registry.npmjs.org/postprocess/0.0.2
npm http GET https://registry.npmjs.org/connect-cookie-session/0.0.2
npm http GET https://registry.npmjs.org/mongodb/0.9.6-16
npm http 200 https://registry.npmjs.org/connect-cookie-session/0.0.2
npm http GET https://registry.npmjs.org/connect-cookie-session/-/connect-cookie-session-0.0.2.tgz
npm http 200 https://registry.npmjs.org/postprocess/0.0.2
npm http GET https://registry.npmjs.org/postprocess/-/postprocess-0.0.2.tgz
npm http 200 https://registry.npmjs.org/express/2.4.6
npm http GET https://registry.npmjs.org/express/-/express-2.4.6.tgz
npm http 200 https://registry.npmjs.org/connect-cookie-session/-/connect-cookie-session-0.0.2.tgz
npm http 200 https://registry.npmjs.org/postprocess/-/postprocess-0.0.2.tgz
npm http 200 https://registry.npmjs.org/mongodb/0.9.6-16
npm http GET https://registry.npmjs.org/mongodb/-/mongodb-0.9.6-16.tgz
npm http 200 https://registry.npmjs.org/express/-/express-2.4.6.tgz
npm http 200 https://registry.npmjs.org/mongodb/-/mongodb-0.9.6-16.tgz
npm WARN mongodb@0.9.6-16 package.json: bugs['web'] should probably be bugs['url']
npm WARN nodeunit@0.5.1 package.json: bugs['web'] should probably be bugs['url']

npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: express@2.4.6
npm ERR! Required: {"node":">= 0.4.1 < 0.5.0"}
npm ERR! Actual: {"npm":"1.1.0-3","node":"0.6.10"}
npm ERR!
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd .../myfavoritebeer.org
npm ERR! node -v v0.6.10
npm ERR! npm -v 1.1.0-3
npm ERR! code ENOTSUP
npm ERR! message Unsupported
npm ERR! errno {}
npm not ok
```

Changing the requested version of express to 2.5.4 (what seems to be the current 2.x branch version) allows "npm install" to complete, however, I am now getting failure when trying to execute "npm start" (Cannot find module 'connect'), which I'm just starting to investigate.