Skip to content

Instantly share code, notes, and snippets.

@cabbibo
Created November 3, 2014 12:13
Show Gist options
  • Save cabbibo/c7b5166ffdf742f1b672 to your computer and use it in GitHub Desktop.
Save cabbibo/c7b5166ffdf742f1b672 to your computer and use it in GitHub Desktop.
sudo curl -L npmjs.org/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 193 100 193 0 0 526 0 --:--:-- --:--:-- --:--:-- 527
100 6044 100 6044 0 0 4688 0 0:00:01 0:00:01 --:--:-- 6915
tar=/usr/bin/tar
version:
bsdtar 2.8.3 - libarchive 2.8.3
install npm@latest
fetching: http://registry.npmjs.org/npm/-/npm-2.1.6.tgz
npm ERR! Darwin 13.3.0
npm ERR! argv "/usr/local/bin/node" "/private/var/folders/9j/yms2rlqs7295dq9hcsmyhw4r0000gn/T/npm.23008/package/cli.js" "rm" "npm" "-gf"
npm ERR! node v0.10.28
npm ERR! npm v2.1.6
npm ERR! path /usr/local/lib/node_modules/npm/html/api/bin.html
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/npm/html/api/bin.html'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm/html/api/bin.html']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/npm/html/api/bin.html' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/9j/yms2rlqs7295dq9hcsmyhw4r0000gn/T/npm.23008/package/npm-debug.log
> [email protected] prepublish /private/var/folders/9j/yms2rlqs7295dq9hcsmyhw4r0000gn/T/npm.23008/package
> node bin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*/node_modules && make -j8 doc
make: Nothing to be done for `doc'.
npm ERR! Darwin 13.3.0
npm ERR! argv "/usr/local/bin/node" "/private/var/folders/9j/yms2rlqs7295dq9hcsmyhw4r0000gn/T/npm.23008/package/cli.js" "install" "-gf"
npm ERR! node v0.10.28
npm ERR! npm v2.1.6
npm ERR! path /usr/local/lib/node_modules/npm/html/api/bin.html
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/npm/html/api/bin.html'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm/html/api/bin.html']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/npm/html/api/bin.html' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/npm/html/api/bin.html'
npm ERR! error rolling back { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm/html/api/bin.html']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/npm/html/api/bin.html' }
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/9j/yms2rlqs7295dq9hcsmyhw4r0000gn/T/npm.23008/package/npm-debug.log
It failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment