Created
May 21, 2011 19:59
-
-
Save tholder/984844 to your computer and use it in GitHub Desktop.
express madness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -v | |
v0.4.7 | |
npm -v | |
1.0.6 | |
npm ls -g | |
/usr/local/lib | |
├── coffee-script@1.1.1 | |
├─┬ express@2.3.6 | |
│ ├── connect@1.4.1 | |
│ ├── mime@1.2.2 | |
│ └── qs@0.1.0 | |
├── jade@0.11.0 | |
├── nodemon@0.4.1 | |
└─┬ npm@1.0.6 | |
├── abbrev@1.0.3 | |
├── node-uuid@1.1.0 | |
├── nopt@1.0.4 | |
└── semver@1.0.5 | |
When I create app using: | |
express command, change in to folder and: node app.js | |
Get: | |
node.js:134 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
TypeError: Object #<Object> has no method 'bodyParser' | |
at Server.<anonymous> (/Users/tholder/Sites/czv2/api/app.js:15:19) | |
at Server.configure (/Users/tholder/.node_libraries/express/server.js:325:8) | |
at Object.<anonymous> (/Users/tholder/Sites/czv2/api/app.js:12:5) | |
at Module._compile (module.js:404:26) | |
at Object..js (module.js:410:10) | |
at Module.load (module.js:336:31) | |
at Function._load (module.js:297:12) | |
at Array.<anonymous> (module.js:423:10) | |
at EventEmitter._tickCallback (node.js:126:26) |
After rm -rf ~/.node_libraries/
I get this:
Error: Cannot find module 'express'
at Function._resolveFilename (module.js:320:11)
at Function._load (module.js:266:25)
at require (module.js:348:19)
at Object. (/Users/tholder/Sites/czv2/api/app.js:6:15)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array. (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The version I have installed seems to contradict what migrations say at: https://github.com/senchalabs/connect
It's a clean install of node and npm