我有以下木偶清单文件:
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。你知道我错过了吗?
谢谢!