解决方案 1:切换到可用镜像源 # 临时切换 registrypnpminstall--registry=https://registry.npmmirror.com# 或者修改全局配置(永久生效)pnpmconfigsetregistry https://registry.npmmirror.com Bash Copy 说明:使用国内npmmirror.com镜像源可以避免跨境网络不稳定的问题。 解决方案 2:配置 HTTP(S) 代理 # 临时在 Sh...