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 #52 from hirocaster/fix-module-install
Browse files Browse the repository at this point in the history
Fix npm_module install
  • Loading branch information
blackjid committed Aug 23, 2015
2 parents 0f76903 + 3f80beb commit 60cb3cc
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,
:uid => user,
:user => 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,
:uid => user,
:user => 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 60cb3cc

Please sign in to comment.