Skip to content

Instantly share code, notes, and snippets.

@broofa
Created April 3, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save broofa/ecb06e3daef52ef9c713 to your computer and use it in GitHub Desktop.
Save broofa/ecb06e3daef52ef9c713 to your computer and use it in GitHub Desktop.
kieffer@Roberts-MacBook-Pro$ node -e "require('express')" # i.e. express not installed
module.js:340
throw err;
^
Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at [eval]:1:1
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:456:26)
at evalScript (node.js:536:25)
at startup (node.js:80:7)
at node.js:906:3
kieffer@Roberts-MacBook-Pro$ node -v
v0.10.32
kieffer@Roberts-MacBook-Pro$ npm -v
1.4.28
kieffer@Roberts-MacBook-Pro$ npm install -g express # install express globally
express@4.12.3 /Users/kieffer/local/node/lib/node_modules/express
├── merge-descriptors@1.0.0
├── utils-merge@1.0.0
├── cookie-signature@1.0.6
├── methods@1.1.1
├── fresh@0.2.4
├── cookie@0.1.2
├── escape-html@1.0.1
├── range-parser@1.0.2
├── finalhandler@0.3.4
├── content-type@1.0.1
├── vary@1.0.0
├── parseurl@1.3.0
├── serve-static@1.9.2
├── content-disposition@0.5.0
├── path-to-regexp@0.1.3
├── depd@1.0.0
├── qs@2.4.1
├── on-finished@2.2.0 (ee-first@1.1.0)
├── etag@1.5.1 (crc@3.2.1)
├── send@0.12.2 (destroy@1.0.3, ms@0.7.0, mime@1.3.4)
├── debug@2.1.3 (ms@0.7.0)
├── proxy-addr@1.0.7 (forwarded@0.1.0, ipaddr.js@0.1.9)
├── accepts@1.2.5 (negotiator@0.5.1, mime-types@2.0.10)
└── type-is@1.6.1 (media-typer@0.3.0, mime-types@2.0.10)
kieffer@Roberts-MacBook-Pro$ node -e "require('express')" # this should work
kieffer@Roberts-MacBook-Pro$ # it does
kieffer@Roberts-MacBook-Pro$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment