diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-29 09:45:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-29 09:45:29 +0000 |
| commit | 2df66620445a8a10effbd343b8b73c7a2070d732 (patch) | |
| tree | 1d8f44da7b206a6eadd3d22c4c526e7e3516d219 | |
| parent | 405c9a369998127fd12f97a1bf0f2a146f6157cc (diff) | |
automatic import of opencode
| -rw-r--r-- | opencode.spec | 3 |
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" |
