From 2df66620445a8a10effbd343b8b73c7a2070d732 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 29 Oct 2026 09:45:29 +0000 Subject: automatic import of opencode --- opencode.spec | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.3