gpt4 book ai didi

node.js - puppet :命令 npm 丢失

转载 作者:太空宇宙 更新时间:2023-11-03 22:17:39 25 4
gpt4 key购买 nike

我有以下 puppet list 文件:

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。你知道我错过了什么吗?

谢谢!

最佳答案

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

关于node.js - puppet :命令 npm 丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20032753/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com