Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set npm registry to fetch dependence error #541

Closed
zyyv opened this issue Jul 19, 2024 · 2 comments
Closed

Set npm registry to fetch dependence error #541

zyyv opened this issue Jul 19, 2024 · 2 comments

Comments

@zyyv
Copy link

zyyv commented Jul 19, 2024

For various reasons, if my npm image is not modified, network problems often error.

Run npm config set registry https://registry.npmmirror.com/

But after I changed the npm image source, the package management tool used by corepack still downloaded from registry.npmjs.org, so my npm config set registry became invalid.

Expectation:
Set a new image source, and corepack downloads dependencies from the new image source.

$ npm config set registry https://registry.npmmirror.com/
$ corepack enable
$ node -v
v20.13.0
$ pnpm -v
/usr/local/nodejs/lib/node_modules/corepack/dist/lib/corepack.cjs:2[27](xxxx-/jobs/1676749#L27)62
    throw new Error(
          ^
Error: Error when performing the request to https://registry.npmjs.org/pnpm/latest; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
@zyyv
Copy link
Author

zyyv commented Jul 19, 2024

duplicate of #535

@zyyv zyyv closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
@zyyv
Copy link
Author

zyyv commented Jul 19, 2024

duplicate of #540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant