Skip to content

Instantly share code, notes, and snippets.

@ggoodman
Created July 12, 2012 13:13
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 ggoodman/cbb350d7fda366f66692 to your computer and use it in GitHub Desktop.
Save ggoodman/cbb350d7fda366f66692 to your computer and use it in GitHub Desktop.
Nodejitsu install failure on bson

mongodb package failing to install on Nodejitsu

It seems like there might be some strange user/file permission issue whereby the working directory at dependency installation stage doesn't allow read/write access.

error: npm http GET https://registry.npmjs.org/bson/-/bson-0.0.6.tgz
error:
error: node.js:460
error: var cwd = process.cwd();
error: ^
error: Error: EACCES, permission denied
error: at Function.resolveArgv0 (node.js:460:23)
error: at startup (node.js:51:13)
error: at node.js:551:3
error: npm ERR! bson@0.0.6 install: `node install.js`
error: npm ERR! `sh "-c" "node install.js"` failed with 11
error: npm ERR!
error: npm ERR! Failed at the bson@0.0.6 install script.
error: npm ERR! This is most likely a problem with the bson package,
error: npm ERR! not with npm itself.
error: npm ERR! Tell the author that this fails on your system:
error: npm ERR! node install.js
error: npm ERR! You can get their info via:
error: npm ERR! npm owner ls bson
error: npm ERR! There is likely additional logging output above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment