summaryrefslogtreecommitdiff
path: root/opencode.spec
diff options
context:
space:
mode:
Diffstat (limited to 'opencode.spec')
-rw-r--r--opencode.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/opencode.spec b/opencode.spec
index 2fc675a..7964d9f 100644
--- a/opencode.spec
+++ b/opencode.spec
@@ -154,6 +154,9 @@ bun --version
export npm_config_registry="https://mirrors.huaweicloud.com/repository/npm/"
export NPM_CONFIG_REGISTRY="$npm_config_registry"
export BUN_CONFIG_REGISTRY="$npm_config_registry"
+# node-gyp must not try nodejs.org (unreachable from the builders)
+export npm_config_disturl="https://mirrors.huaweicloud.com/nodejs"
+export NPM_CONFIG_DISTURL="$npm_config_disturl"
export npm_config_prefix="$HOME/npm-global"
export NPM_CONFIG_PREFIX="$npm_config_prefix"
mkdir -p "$npm_config_prefix"