Merge pull request #7089 from dawidd6/npm-args-unsafe-perm

node: add --unsafe-perm to std_args
This commit is contained in:
Mike McQuaid 2020-03-02 13:19:59 +00:00 committed by GitHub
commit b3a340cc6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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