isaacs/npm — Issue #1561: Error installing packages
Author: handloomweaver
Created: 2011-10-17 15:00:58+00:00
State: open

I'm having a mare. I tried to update node and npm and have totally knackered my installation of npm. I have run the clean up script but same problem. When I try to install a package now (globally) I get this: HELP! What do I do? This is OSX Snow Leopard

npm ERR! error installing coffee-script@1.1.2 Error: Refusing to delete: /usr/local/bin/coffee not in /usr/local/lib/node_modules/coffee-script
npm ERR! error installing coffee-script@1.1.2 at clobberFail (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error installing coffee-script@1.1.2 at next (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error installing coffee-script@1.1.2 at /usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! error installing coffee-script@1.1.2 at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! error rolling back coffee-script@1.1.2 Error: Refusing to delete: /usr/local/bin/coffee not in /usr/local/lib/node_modules/coffee-script
npm ERR! error rolling back coffee-script@1.1.2 at clobberFail (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! error rolling back coffee-script@1.1.2 at next (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! error rolling back coffee-script@1.1.2 at /usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! error rolling back coffee-script@1.1.2 at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Error: Refusing to delete: /usr/local/bin/coffee not in /usr/local/lib/node_modules/coffee-script
npm ERR! at clobberFail (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:110:12)
npm ERR! at next (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:97:42)
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:105:12
npm ERR! at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "coffee-script"
npm ERR! cwd /Users/almacmillan/Downloads
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.99
npm ERR! path /usr/local/bin/coffee
npm ERR! code EEXIST
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/almacmillan/Downloads/npm-debug.log
npm not ok