corepack icon indicating copy to clipboard operation
corepack copied to clipboard

cannot install pnpm

Open noshower opened this issue 1 year ago • 7 comments

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

node version: 20.12.0

image

noshower avatar Jul 17 '24 02:07 noshower

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 avatar Jul 17 '24 06:07 vobile-wangzhenfeng

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 avatar Jul 17 '24 07:07 vobile-wangzhenfeng

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

vobile-wangzhenfeng avatar Jul 18 '24 02:07 vobile-wangzhenfeng

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

justorez avatar Aug 04 '24 14:08 justorez

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

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

xhwgood avatar Oct 29 '24 08:10 xhwgood

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这个问题就解决了 。已设置腾讯云的环境变量

flynncao avatar Nov 12 '24 09:11 flynncao

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

refinist avatar Nov 19 '24 08:11 refinist