summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/npm.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/npm.bbclass b/meta/classes/npm.bbclass
index 799b2a3829..cf2c12047e 100644
--- a/meta/classes/npm.bbclass
+++ b/meta/classes/npm.bbclass
@@ -44,6 +44,9 @@ NPM_BUILD = "${WORKDIR}/npm-build"
44def npm_global_configs(d): 44def npm_global_configs(d):
45 """Get the npm global configuration""" 45 """Get the npm global configuration"""
46 configs = [] 46 configs = []
47 # Ensure no network access is done
48 configs.append(("offline", "true"))
49 configs.append(("proxy", "http://invalid"))
47 # Configure the cache directory 50 # Configure the cache directory
48 configs.append(("cache", d.getVar("NPM_CACHE"))) 51 configs.append(("cache", d.getVar("NPM_CACHE")))
49 return configs 52 return configs