apache / apache/pulsar-client-node

公司网络无法访问海外站点,如何解决?

Open
#455 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
164
Forks
98
PR merge metrics
No merged PRs in 30d

Description

npm install pulsar-client@1.13.1
报错:
npm error node-pre-gyp ERR! install request to https://archive.apache.org/dist/pulsar/pulsar-client-node/pulsar-client-node-1.13.1/napi-linux-glibc-x64.tar.gz failed, reason: write EPROTO 40D8E5B8697F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:

应该是公司网络无法访问海外站点:https://archive.apache.org。

执行:wget https://archive.apache.org/dist/pulsar/pulsar-client-node/pulsar-client-node-1.13.1/napi-linux-glibc-x64.tar.gz
报错:
--2026-02-02 09:47:11-- https://archive.apache.org/dist/pulsar/pulsar-client-node/pulsar-client-node-1.13.1/napi-linux-glibc-x64.tar.gz
正在解析主机 archive.apache.org (archive.apache.org)... 65.108.204.189, 2a01:4f9:1a:a084::2
正在连接 archive.apache.org (archive.apache.org)|65.108.204.189|:443... 已连接。
GnuTLS: 收到一个未预期的 TLS 数据包。
无法建立 SSL 连接。

请问对于这种无法访问海外站点的情况,要如何解决?
能否支持设置为国内站点。

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the installation with npm install pulsar-client@1.13.1 and the node-pre-gyp download URL shown in the report. Check how the package currently obtains the prebuilt archive and whether a configurable mirror is already supported. Done should be a documented, reliable way to use an alternative download site for networks that cannot reach archive.apache.org.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.