language/node: build native addons from source

By telling node-pre-gyp and prebuild to don't pull prebuild binaries and
instead build them from source. This still may not work for some custom
third party scripts for pulling prebuild binaries.
This commit is contained in:
Christian Moritz 2017-06-26 20:35:48 +02:00
parent 7d8124f339
commit 02113e2714
2 changed files with 6 additions and 2 deletions

View File

@ -44,6 +44,7 @@ module Language
%W[
-ddd
--global
--build-from-source
--prefix=#{libexec}
#{Dir.pwd}/#{pack}
]
@ -52,7 +53,10 @@ module Language
def self.local_npm_install_args
setup_npm_environment
# npm install args for local style module format
["-ddd"]
%w[
-ddd
--build-from-source
]
end
end
end

View File

@ -41,6 +41,6 @@ describe Language::Node do
specify "#local_npm_install_args" do
resp = subject.local_npm_install_args
expect(resp).to include("-ddd")
expect(resp).to include("-ddd", "--build-from-source")
end
end