puppet:缺少命令npm

时间:2013-11-17 15:53:04

标签: node.js puppet

我有以下木偶清单文件:

include nodejs

package { 'yo':
  ensure => present,
  provider => 'npm',
  require => Class["nodejs"],
}

这会产生以下错误:

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

我原以为包括nodejs会安装npm。你知道我错过了吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,并最终使用https://forge.puppetlabs.com/willdurand/nodejs完美地工作(作为依赖性的wget)。