NPM `git` 身份验证失败
作者: TheProdigyLeague创建于 2025年8月29日更新于 2025年8月29日
What happened? This ticket ⚠️ involves two independent but related issues that occurred during the build process of the Wepy project. The first issue is a certificate expiration error from npm, and the second is an authentication failure when trying to link packages via git. Reproducibility steps 1. Run the build scripts npm install, npm link 2. Make sure NPM is configured with https://registry.npm.taobao.org 3. The CERT_HAS_EXPIRED error appears. ## NPM certificate expired The error ⚠️ indicates that the SSL/TLS certificate for the registry has expired ⌛. This prevents packages like write-pkg-3.2.0.tgz from being downloaded ⬇️. ### Expected behavior Smooth download after issuing commands from a specific registry. ### Actual behavior The command fails and displays npm ERR! code CERT_HAS_EXPIRED. ---- # Git authentication failure ## What happened? When trying to run the build script npm link packages/cli to link the local package to the wepy project, a git operation is triggered, resulting in a remote repository failure ❌ and an Permission Denied (publickey) error. The system does not have a public key. ### Reproducibility steps 1. Navigate to the project directory /home/qenmity/AndroidStudioProjects/openapi_pyGlobalSpec/openapi-Python-sdk/10cent/wepy 2. Run npm link packages/cli 3. A public key error appears. #### Expected behavior The npm link command successfully creates a symbolic link. (Authentication should be performed correctly.) #### Actual behavior An error occurs. Additional information cpp 1756496869362 Error Sequencer [4] Timeout in transmission from static.www.Tencent.com 1756496690321 Error Sequencer [4] Communication error: static.www.Tencent.com 1756496689478 Info Logger Discarded log entry larger than Logger memory limit
内容来源: Tencent/wepy