isaacs/npm — Issue #2211: npm-get-uid-gid.js" "nobody" 0` failed with 127
Author: morodomi
Created: 2012-02-28 17:13:41+00:00
State: open

When I try to install http-proxy, the error occurred.
Does anyone know how to fix this?

# npm install http-proxy -g
info it worked if it ends with ok
verbose cli [ '/root/node',
verbose cli '/usr/local/bin/npm',
verbose cli 'install',
verbose cli 'http-proxy',
verbose cli '-g' ]
info using npm@1.1.2
info using node@v0.7.5
verbose /root/node node symlink
verbose config file /root/.npmrc
verbose config file /etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
silly exec /root/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0
silly spawning [ '/root/node',
silly spawning [ '/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js',
silly spawning 'nobody',
silly spawning 0 ],
silly spawning null ]
ERR! Could not get uid/gid execvp(): No such file or directory
ERR!
ERR! Error: `/root/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0` failed with 127
ERR! at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
ERR! at ChildProcess.emit (events.js:70:17)
ERR! at maybeExit (child_process.js:381:16)
ERR! at Socket. (child_process.js:486:7)
ERR! at Socket.emit (events.js:67:17)
ERR! at Array.0 (net.js:350:10)
ERR! at EventEmitter._tickCallback (node.js:188:41)
ERR! You may report this log at:
ERR!
ERR! or email it to:
ERR!
ERR!
ERR! System Linux 2.6.31-302-ec2
ERR! command "/root/node" "/usr/local/bin/npm" "install" "http-proxy" "-g"
ERR! cwd /root
ERR! node -v v0.7.5
ERR! npm -v 1.1.2
ERR! message `/root/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0` failed with 127
verbose exit [ 1, true ]