isaacs/npm — Issue #1682: npm install.sh has no /dev/tty under Puppet exec
Author: kennu
Created: 2011-11-09 16:01:15+00:00
State: open

The npm install script has this line:

NODE="$node" /bin/bash "scripts/clean-old.sh" '/usr/bin/curl -o /tmp/npm-install.sh http://npmjs.org/install.sh',
creates => '/tmp/npm-install.sh',
}
exec { 'npm_install':
command => '/bin/bash /tmp/npm-install.sh >> /tmp/npm-install.log 2>&1',
cwd => '/tmp',
creates => '/usr/bin/npm',
provider => 'shell',
path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
environment => 'npm_debug=1',
require => [Class['os::nodejs'], Exec['npm_download']],
}
}