Skip to content

Instantly share code, notes, and snippets.

@voigt
Created February 18, 2013 11:55
Show Gist options
  • Save voigt/4976853 to your computer and use it in GitHub Desktop.
Save voigt/4976853 to your computer and use it in GitHub Desktop.
Installing bower fails even with root permissions.
Christoph-Voigts-MacBook-Pro:~ christophvoigt$ sudo npm install bower -g
Password:
npm http GET https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/vows
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/hogan.js
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/read-package-json
npm http GET https://registry.npmjs.org/stable
npm http GET https://registry.npmjs.org/rc
npm http GET https://registry.npmjs.org/unzip/0.0.4
npm http GET https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/tmp
npm http 304 https://registry.npmjs.org/vows
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/archy
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/hogan.js
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/read-package-json
npm http 304 https://registry.npmjs.org/stable
npm http 304 https://registry.npmjs.org/rc
npm http 304 https://registry.npmjs.org/unzip/0.0.4
npm http 304 https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/config-chain
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/npmlog
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/pullstream/0.0.4
npm http GET https://registry.npmjs.org/binary
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/diff
npm http 304 https://registry.npmjs.org/config-chain
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/proto-list
npm http GET https://registry.npmjs.org/ini
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/npmlog
npm http 304 https://registry.npmjs.org/slide
npm http 304 https://registry.npmjs.org/pullstream/0.0.4
npm http 304 https://registry.npmjs.org/binary
npm http 304 https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/ansi
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/stream-buffers
npm http 304 https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/proto-list
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/ini
npm http 304 https://registry.npmjs.org/ansi
npm http 304 https://registry.npmjs.org/over
npm http GET https://registry.npmjs.org/chainsaw
npm http GET https://registry.npmjs.org/buffers
npm http 304 https://registry.npmjs.org/stream-buffers
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/traverse
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
> [email protected] postinstall /usr/local/lib/node_modules/bower
> node cleanup
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
node.js:536
var cwd = process.cwd();
^
Error: EACCES, permission denied
at Function.startup.resolveArgv0 (node.js:536:23)
at startup (node.js:54:13)
at node.js:627:3
npm ERR! [email protected] postinstall: `node cleanup`
npm ERR! `sh "-c" "node cleanup"` failed with 11
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the bower package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node cleanup
npm ERR! You can get their info via:
npm ERR! npm owner ls bower
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "bower" "-g"
npm ERR! cwd /Users/christophvoigt
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.2.10
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/christophvoigt/npm-debug.log
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment