isaacs/npm — Issue #2212: npm install --global fails (Could not get uid/gid execvp(): No such file or directory)
Author: ProGNOMmers
Created: 2012-02-29 15:18:56+00:00
State: open

Local install is ok, global install is ko.

This is the error:

# npm install -g coffee-script
npm ERR! Could not get uid/gid execvp(): No such file or directory
npm ERR!

npm ERR! Error: `/root/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0` failed with 127
npm ERR! at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:70:17)
npm ERR! at maybeExit (child_process.js:381:16)
npm ERR! at Socket. (child_process.js:486:7)
npm ERR! at Socket.emit (events.js:67:17)
npm ERR! at Array.0 (net.js:350:10)
npm ERR! at EventEmitter._tickCallback (node.js:188:41)
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.38-13-generic
npm ERR! command "/root/node" "/usr/local/bin/npm" "install" "-g" "coffee-script"
npm ERR! cwd /root
npm ERR! node -v v0.7.5
npm ERR! npm -v 1.1.2
npm ERR! message `/root/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 0` failed with 127
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok

And this is npm-debug.log:

# cat npm-debug.log
info it worked if it ends with ok
verbose cli [ '/root/node',
verbose cli '/usr/local/bin/npm',
verbose cli 'install',
verbose cli '-g',
verbose cli 'coffee-script' ]
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.38-13-generic
ERR! command "/root/node" "/usr/local/bin/npm" "install" "-g" "coffee-script"
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 ]