nodejs / corepack

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

Internal Error while executing any yarn command... #273

Closed from-nobody closed 1 year ago

from-nobody commented 1 year ago

I cloned a project via and tried to execute 'yarn install' to install dependencies but got an error as followed .Whatever command I typed, it just thrown the same Internal Error. As a contrast , I cloned another yarn-based project, and everything went OK.

Expectation: Run target project locally.

The target project gitignore is: `.yarn/* !.yarn/patches !.yarn/plugins !.yarn/releases !.yarn/sdks !.yarn/versions

!.yarn/cache node_modules/`


`PS C:\Users\user_name\test\project_cloned_from_github> yarn config

Internal Error: Error when performing the request at ClientRequest. (D:\Program Files\nodejs\node_modules\corepack\dist\corepack.js:43953:14) at ClientRequest.emit (node:events:513:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:513: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)


PS C:\Users\user_name\test\project_cloned_from_github> yarn -v

Internal Error: Error when performing the request at ClientRequest. (D:\Program Files\nodejs\node_modules\corepack\dist\corepack.js:43953:14) at ClientRequest.emit (node:events:513:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:513: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)`

aduh95 commented 1 year ago

Duplicate of https://github.com/nodejs/corepack/issues/257?