Advertisement
vamsiampolu

Error installing mongoose on vagrant

Oct 28th, 2014
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. I used this to install npm modules in vagrant, npm install --no-bin-links
  2. I get this error from mongoose:
  3.  
  4. vagrant@precise32:~/app$ npm start
  5.  
  6. > node_notes@0.0.1 start /home/vagrant/app
  7. > node ./bin/www
  8.  
  9. /
  10. module.js:340
  11.     throw err;
  12.           ^
  13. Error: Cannot find module 'mongodb'
  14.     at Function.Module._resolveFilename (module.js:338:15)
  15.     at Function.Module._load (module.js:280:25)
  16.     at Module.require (module.js:364:17)
  17.     at require (module.js:380:17)
  18.     at Object.<anonymous> (/home/vagrant/app/node_modules/mongoose/lib/utils.
  19. 5:16)
  20.     at Module._compile (module.js:456:26)
  21.     at Object.Module._extensions..js (module.js:474:10)
  22.     at Module.load (module.js:356:32)
  23.     at Function.Module._load (module.js:312:12)
  24.     at Module.require (module.js:364:17)
  25.     at require (module.js:380:17)
  26.     at Object.<anonymous> (/home/vagrant/app/node_modules/mongoose/lib/schema
  27. :7:13)
  28. -
  29. npm ERR! node_notes@0.0.1 start: `node ./bin/www`
  30. npm ERR! Exit status 8
  31. npm ERR!
  32. npm ERR! Failed at the node_notes@0.0.1 start script.
  33. npm ERR! This is most likely a problem with the node_notes package,
  34. npm ERR! not with npm itself.
  35. npm ERR! Tell the author that this fails on your system:
  36. npm ERR!     node ./bin/www
  37. npm ERR! You can get their info via:
  38. npm ERR!     npm owner ls node_notes
  39. npm ERR! There is likely additional logging output above.
  40. npm ERR! System Linux 3.2.0-23-generic-pae
  41. npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "start"
  42. npm ERR! cwd /home/vagrant/app
  43. npm ERR! node -v v0.10.29
  44. npm ERR! npm -v 1.4.14
  45. npm ERR! code ELIFECYCLE
  46. npm ERR!
  47. npm ERR! Additional logging details can be found in:
  48. npm ERR!     /home/vagrant/app/npm-debug.log
  49. npm ERR! not ok code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement