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

NPM_MIRROR dont work with repo.yarn.com #572

Closed
cangSDARM opened this issue Oct 29, 2024 · 6 comments
Closed

NPM_MIRROR dont work with repo.yarn.com #572

cangSDARM opened this issue Oct 29, 2024 · 6 comments

Comments

@cangSDARM
Copy link

Internal Error: Error when performing the request to https://repo.yarnpkg.com/3.6.3/packages/yarnpkg-cli/bin/yarn.js; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting

i configed COREPACK_NPM_REGISTRY in my process.env
image

@cangSDARM
Copy link
Author

cangSDARM commented Oct 29, 2024

I don't understand what's the point of corepack (so many registry/repo/mirror need to be resolve)

@aduh95
Copy link
Contributor

aduh95 commented Oct 29, 2024

Can you set DEBUG=corepack in your env and share the commands you're trying and the output? Please refrain from sending screenshots, it makes it harder for e.g. folks using screen readers, instead copy/paste the output please.

@cangSDARM
Copy link
Author

DEBUG="corepack" yarn install
2024-10-30T03:46:35.983Z corepack Installing [email protected] from https://repo.yarnpkg.com/3.6.3/packages/yarnpkg-cli/bin/yarn.js to C:\Users\Administrator\AppData\Local\node\corepack\corepack-10640-3bdb2582.cb621
Internal Error: Error when performing the request to https://repo.yarnpkg.com/3.6.3/packages/yarnpkg-cli/bin/yarn.js; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
    at ClientRequest.<anonymous> (C:\Users\Administrator\AppData\Roaming\nvm\v20.10.0\node_modules\corepack\dist\lib\corepack.cjs:42195:14)
    at ClientRequest.emit (node:events:514:28)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

corepack -v
0.22.0

node -v
v20.10.0

seems like node didn't ship the latest corepack, and #67 (comment)

@aduh95
Copy link
Contributor

aduh95 commented Oct 30, 2024

You are using old versions of Node.js and Corepack, consider updating and report back if the problem still exists with up-to-date versions. Closing for now, let's reopen if necessary.

@aduh95 aduh95 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2024
@cangSDARM
Copy link
Author

If the problem with corepack is that it has to go with node, then isn't it IE (activeX) on the server side?

@aduh95
Copy link
Contributor

aduh95 commented Oct 31, 2024

It doesn't have to "go with node", whatever you mean by that; getting it alongside node is certainly the most common way for using Corepack, but it's not the only one.

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

2 participants