diff --git a/manifests/install.pp b/manifests/install.pp index c2440338..79599109 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -50,12 +50,14 @@ } } - file { 'root_npmrc': - ensure => 'file', - path => "${facts['root_home']}/.npmrc", - content => template('nodejs/npmrc.erb'), - owner => 'root', - group => '0', - mode => '0600', + if $facts['os']['name'] != 'Windows' { + file { 'root_npmrc': + ensure => 'file', + path => "${facts['root_home']}/.npmrc", + content => template('nodejs/npmrc.erb'), + owner => 'root', + group => '0', + mode => '0600', + } } }