isaacs/npm — Issue #2090: TypeError when installing node-inspector.
Author: euskode
Created: 2012-01-25 00:30:39+00:00
State: open

I don't remember having any problems in the past but I am now setting up a new machine and getting the issue below when I try to install node-inspector:

ERR! TypeError: Cannot call method 'call' of undefined
ERR! at Object.lchown (/usr/lib/nodejs/npm/node_modules/graceful-fs/graceful-fs.js:228:17)
ERR! at setProps (/usr/lib/nodejs/npm/node_modules/fstream/lib/writer.js:240:19)
ERR! at Object.oncomplete (/usr/lib/nodejs/npm/node_modules/fstream/lib/writer.js:206:7)

Here are the contents of my node-debug.log file: https://gist.github.com/1673769

Any thoughts as to why this is happening?

Some details about my environment:

ERR! System Linux 3.0.0-15-generic
ERR! command "node" "/usr/bin/npm" "install" "-g" "node-inspector"
ERR! cwd /home/mikel
ERR! node -v v0.6.8
ERR! npm -v 1.1.0-2