isaacs/npm — Issue #2225: npm install error
Author: andrija-hers
Created: 2012-03-03 20:40:15+00:00
State: open

sudo npm install socket.io-client
or
sudo npm install socket.io-client -g

results in

npm http GET https://registry.npmjs.org/socket.io-client
npm http 304 https://registry.npmjs.org/socket.io-client
npm http GET https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.1-1.tgz
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.1-1.tgz

npm ERR! TypeError: path must be a string
npm ERR! at Object. (fs.js:576:11)
npm ERR! at Object.fchown (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:229:17)
npm ERR! at fs.js:565:10
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:56:5
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:68:5)
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io-client"
npm ERR! cwd /Users/andra/Work/workspace1/Server
npm ERR! node -v v0.7.6-pre
npm ERR! npm -v 1.1.4
npm ERR! message path must be a string
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/andra/Work/workspace1/Server/npm-debug.log
npm not ok