Merge pull request #7089 from dawidd6/npm-args-unsafe-perm
node: add --unsafe-perm to std_args
This commit is contained in:
commit
b3a340cc6a
@ -41,7 +41,7 @@ module Language
|
||||
pack = pack_for_installation
|
||||
|
||||
# npm install args for global style module format installed into libexec
|
||||
%W[
|
||||
args = %W[
|
||||
-ddd
|
||||
--global
|
||||
--build-from-source
|
||||
@ -49,6 +49,10 @@ module Language
|
||||
--prefix=#{libexec}
|
||||
#{Dir.pwd}/#{pack}
|
||||
]
|
||||
|
||||
args << "--unsafe-perm" if Process.uid.zero?
|
||||
|
||||
args
|
||||
end
|
||||
|
||||
def self.local_npm_install_args
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user