nodejs / corepack

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

cannot install pnpm #535

Open noshower opened 3 months ago

noshower commented 3 months ago

Cannot install pnpm in gitlab cicd, but it was possible last week.

node version: 20.12.0

image
vobile-wangzhenfeng commented 3 months ago

same problem

Internal Error: Error when performing the request to https://registry.npmjs.org/pnpm/-/pnpm-8.15.4.tgz; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting

vobile-wangzhenfeng commented 3 months ago

Cannot install pnpm in gitlab cicd, but it was possible last week.

node version: 20.12.0

image

registry.npmjs.org is blocked by the GFW

vobile-wangzhenfeng commented 3 months ago

At present by setting the environment variable in the Jenkins COREPACK_NPM_REGISTRY=https://mirrors.cloud.tencent.com/npm to solve the problem.

justorez commented 2 months ago

At present by setting the environment variable in the Jenkins COREPACK_NPM_REGISTRY=https://mirrors.cloud.tencent.com/npm to solve the problem.

I prefer the Alibaba's mirror.

# windows terminal
setx COREPACK_NPM_REGISTRY https://registry.npmmirror.com