nodejs / corepack

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

When using "COREPACK_NPM_REGISTRY", corepack still fetches pnpm from npmjs.org #498

Open leo91000 opened 3 weeks ago

leo91000 commented 3 weeks ago

I have my packageManger field set to "pnpm@9.0.2"

When using COREPACK_NPM_REGISTRY environment variable, corepack fetch succesfully metadata for the given package manager using the provided registry url.

However it seems that the metadata provided by the private package manager returns a tarball located on npmjs.org :

image

As a result, it downloads pnpm from npmjs.org

I am not sure if this is an issue with the private package manager of my company, or if this is some problem with how corepack interpret this.

aduh95 commented 3 weeks ago

What version of Corepack are you using?

leo91000 commented 3 weeks ago

I am using corepack version 0.28.2

devbydixon commented 3 weeks ago

Its a problem with corepack. Updated my pnpm to LTS and this started popping up when I deploy to GCP. works fine locally on Mac but shits the bed in the cloud.