Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #67 from hugobast/fix/npm-global-module-permissions
Browse files Browse the repository at this point in the history
Fix for file ownership issues
  • Loading branch information
jacobbednarz committed Nov 15, 2016
2 parents 056271e + e6ca516 commit e2f029a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/npm_module/npm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def npm(command, node_version, failonfail = true)
bindir = "/opt/nodes/#{node_version}/bin"
execute "#{bindir}/npm #{command} --global", {
:combine => true,
:user => user,
:uid => user,
#Npm versions greater than 0.10.26 return 1 when no dependencies are returned
:failonfail => failonfail,
:override_locale => false,
Expand All @@ -163,7 +163,7 @@ def self.npmlist(node_version)
bindir = "/opt/nodes/#{node_version}/bin"
execute "#{bindir}/npm list --global --json --depth=0 --silent", {
:combine => true,
:user => user,
:uid => user,
#Npm versions greater than 0.10.26 return 1 when no dependencies are returned
:failonfail => false,
:override_locale => false,
Expand Down

0 comments on commit e2f029a

Please sign in to comment.