isaacs/npm — Issue #2101: Error trying to update NPM
Author: Qzen
Created: 2012-01-29 06:58:26+00:00
State: open

npm ERR! Error: EACCESS, Permission denied '/usr/local/bin/npm'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.38-8-generic-pae
npm ERR! command "/usr/local/bin/node" "/tmp/npm.23939/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /tmp/npm.23939/package
npm ERR! node -v v0.5.11-pre
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/bin/npm
npm ERR! code EACCESS
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.23939/package/npm-debug.log
npm not ok
npm ERR! error installing npm@1.0.106 Error: EACCESS, Permission denied '/usr/local/bin/npm'
npm ERR! error rolling back npm@1.0.106 Error: EACCESS, Permission denied '/usr/local/bin/npm'
npm ERR! Error: EACCESS, Permission denied '/usr/local/bin/npm'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.38-8-generic-pae
npm ERR! command "/usr/local/bin/node" "/tmp/npm.23939/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.23939/package
npm ERR! node -v v0.5.11-pre
npm ERR! npm -v 1.0.106
npm ERR! path /usr/local/bin/npm
npm ERR! code EACCESS
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.23939/package/npm-debug.log
npm not ok
It failed

Please find me a solution, i have been attacking this problem for 2 weeks now.