nodejs/corepack

cannot install pnpm

noshower opened this issue · 7 comments

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

node version: 20.12.0

image

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

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

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

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

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

我加上这个没用,启用终端代理也没用,搞不懂了(

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

我加上这个没用,启用终端代理也没用,搞不懂了(

我重新安装了node并corepack enable pnpm这个问题就解决了 。已设置腾讯云的环境变量

mac:COREPACK_NPM_REGISTRY=https://registry.npmmirror.com pnpm -v,is ok