isaacs/npm — Issue #1930: curl
Author: alexhuang91
Created: 2011-12-23 04:35:28+00:00
State: open

I initially installed nodejs (--without-ssl) and followed all the steps and installed npm successfully but then realized I needed the ssl support later when installing coffee-script. installed libssl-dev to gain ssl support and then followed all the directions again installing nodejs successfully with ssl but when I ran 'curl http://npmjs.org/install.sh | sh', it errors out with the following:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7184 100 7184 0 0 13191 0 --:--:-- --:--:-- --:--:-- 30965
tar=/bin/tar
version:
tar (GNU tar) 1.25
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
0.6.6
1.0.106
cleanup prefix=/usr/local

All clean!
npm ERR! Error: EACCES, permission denied '/usr/local/lib/node_modules/npm/node_modules/fast-list/package.json'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 3.0.0-14-generic
npm ERR! command "/usr/local/bin/node" "/tmp/npm.22047/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /tmp/npm.22047/package
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/lib/node_modules/npm/node_modules/fast-list/package.json
npm ERR! code EACCES
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.22047/package/npm-debug.log
npm not ok
npm ERR! error installing npm@1.0.106 Error: EACCES, permission denied '/usr/local/lib/node_modules/npm/node_modules/fast-list/package.json'
npm ERR! error rolling back npm@1.0.106 Error: EACCES, permission denied '/usr/local/lib/node_modules/npm/node_modules/fast-list/package.json'
npm ERR! Error: EACCES, permission denied '/usr/local/lib/node_modules/npm/node_modules/fast-list/package.json'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 3.0.0-14-generic
npm ERR! command "/usr/local/bin/node" "/tmp/npm.22047/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.22047/package
npm ERR! node -v v0.6.6
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/lib/node_modules/npm/node_modules/fast-list/package.json
npm ERR! code EACCES
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.22047/package/npm-debug.log
npm not ok
It failed