nodejs / corepack

Zero-runtime-dependency package acting as bridge between Node projects and their package managers
MIT License
2.49k stars 162 forks source link

corepack prepare pnpm@8.9.0 -activate encountered problems; #317

Closed Dingzhaocheng closed 11 months ago

Dingzhaocheng commented 11 months ago

Current environment: node 20.8.0; System: Linux version 5.15.0-75-generic (buildd@lcy02-amd64-101) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) # 82~20.04.1-Ubuntu

截屏2023-10-12 14 46 52
aduh95 commented 11 months ago

Did you check out https://github.com/nodejs/corepack#troubleshooting as suggested by the error message?

Dingzhaocheng commented 11 months ago

您是否按照错误消息的建议查看了https://github.com/nodejs/corepack#troubleshooting ?

I read it, but I'm not sure if it has anything to do with that, and could you please give me a little hint

aduh95 commented 11 months ago

It could be that the network you’re on is limiting or blocking the access to nodejs.org (maybe your employer, your government, or your network admin has some kind of filter). You need to give to Corepack a proxy to use so it can reach the remote repository.

Dingzhaocheng commented 11 months ago

可能是您所在的网络限制或阻止了对 nodejs.org 的访问(也许您的雇主、您的政府或您的网络管理员有某种过滤器)。您需要为 Corepack 提供一个代理来使用,以便它可以到达远程存储库。

Maybe that's the problem. It's suddenly okay again.extremely grateful