diff --git a/manifests/init.pp b/manifests/init.pp index 181330be..8b7df881 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -99,13 +99,17 @@ ensure => present, require => Anchor['nodejs::repo'] } + $npm_require = 'Package[npm]' + } else + { + $npm_require = 'Package[nodejs]' } if $proxy { exec { 'npm_proxy': command => "npm config set proxy ${proxy}", path => $::path, - require => Package['npm'], + require => $npm_require, } }