Skip to content

Instantly share code, notes, and snippets.

@nym
Created August 8, 2011 20:22
Show Gist options
  • Save nym/1132635 to your computer and use it in GitHub Desktop.
Save nym/1132635 to your computer and use it in GitHub Desktop.
Tom-Longsons-MacBook-Pro:Locker tomlong$ curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3927 100 3927 0 0 11563 0 --:--:-- --:--:-- --:--:-- 24543
Installing without make. This may fail.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.23.tgz
0.4.8
1.0.23
cleanup prefix=/usr/local
This script will find and eliminate any shims, symbolic
links, and other cruft that was installed by npm 0.x.
Is this OK? enter 'yes' or 'no'
yes
All clean!
npm ERR! Error: EACCES, Permission denied '/usr/local/bin/npm'
npm ERR!
npm ERR! Please use 'sudo' or log in as root to run this command.
npm ERR!
npm ERR! sudo npm "rm" "npm" "-gf"
npm ERR!
npm ERR! or set the 'unsafe-perm' config var to true.
npm ERR!
npm ERR! npm config set unsafe-perm true
npm ERR!
npm ERR! System Darwin 11.0.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/nz/sgcvb26537gbpdyzxt576jqw0000gn/T/npm.18060/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /private/var/folders/nz/sgcvb26537gbpdyzxt576jqw0000gn/T/npm.18060/package
npm ERR! node -v v0.4.8
npm ERR! npm -v 1.0.23
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/nz/sgcvb26537gbpdyzxt576jqw0000gn/T/npm.18060/package/npm-debug.log
npm not ok
npm ERR! error installing [email protected] Error: EACCES, Permission denied '/usr/local/bin/npm'
npm ERR! error rolling back [email protected] Error: EACCES, Permission denied '/usr/local/bin/npm'
npm ERR! Error: EACCES, Permission denied '/usr/local/bin/npm'
npm ERR!
npm ERR! Please use 'sudo' or log in as root to run this command.
npm ERR!
npm ERR! sudo npm "install" "-gf"
npm ERR!
npm ERR! or set the 'unsafe-perm' config var to true.
npm ERR!
npm ERR! npm config set unsafe-perm true
npm ERR!
npm ERR! System Darwin 11.0.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/nz/sgcvb26537gbpdyzxt576jqw0000gn/T/npm.18060/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/nz/sgcvb26537gbpdyzxt576jqw0000gn/T/npm.18060/package
npm ERR! node -v v0.4.8
npm ERR! npm -v 1.0.23
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/nz/sgcvb26537gbpdyzxt576jqw0000gn/T/npm.18060/package/npm-debug.log
npm not ok
It failed
Tom-Longsons-MacBook-Pro:Locker tomlong$ sudo npm "install" "-gf"
npm ERR! TypeError: Cannot call method 'filter' of undefined
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/load-package-defaults.js:64:15
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/async-map.js:51:11)
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/find.js:23:20
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/utils/graceful-fs.js:31:9)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR!
npm ERR! System Darwin 11.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-gf"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/tomlong/ltest/lockerbox/Locker/npm-debug.log
npm not ok
Tom-Longsons-MacBook-Pro:Locker tomlong$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment