I have the following puppet manifest file:
include nodejs
package { 'yo':
ensure => present,
provider => 'npm',
require => Class["nodejs"],
}
This produces the following error:
notice: /Stage[main]/Nodejs/Package[nodejs]/ensure: ensure changed 'purged' to 'present'
err: /Stage[main]/Yeoman/Package[bower]/ensure: change from absent to present failed: Command npm is missing
err: /Stage[main]/Yeoman/Package[yo]/ensure: change from absent to present failed: Command npm is missing
I would have thought including nodejs would have installed npm. Do you know what I am missing?
Thanks!