From 7b7a14fd468b39e191fca496b05394a401ced272 Mon Sep 17 00:00:00 2001
From: murgatroid99 <mlumish@google.com>
Date: Wed, 14 Oct 2015 10:55:17 -0700
Subject: [PATCH] Fix npm install failing to download Node headers in
 run_tests.py

---
 tools/run_tests/run_tests.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index ff8ad8ff78..aa13d89c7b 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -202,7 +202,9 @@ class NodeLanguage(object):
 
   def pre_build_steps(self):
     # Default to 1 week cache expiration
-    return [['npm', 'update', '--cache-min', '604800']]
+    return [['npm', 'update', '--cache-min', '604800'],
+            ['npm', 'install', '-g', 'node-gyp-install'],
+            ['node-gyp-install']]
 
   def make_targets(self):
     return []
-- 
GitLab