ui icon indicating copy to clipboard operation
ui copied to clipboard

Failed to tetch components from registry.How to fix it?

Open Mecil9 opened this issue 2 years ago • 2 comments

pnpm dlx shadcn-ui@latest add select

Packages: +198 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 198, reused 198, downloaded 0, added 198, done FetchError: request to https://ui.shadcn.com/registry/index.json failed, reason: read ECONNRESET at ClientRequest. (file:///Users/mecilmeng/Library/pnpm/store/v3/tmp/dlx-41132/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js:108:11) at ClientRequest.emit (node:events:517:28) at TLSSocket.socketErrorListener (node:_http_client:501:9) at TLSSocket.emit (node:events:517: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) { type: 'system', errno: 'ECONNRESET', code: 'ECONNRESET', erroredSysCall: 'read' } Failed to fetch components from registry.

Mecil9 avatar Oct 04 '23 09:10 Mecil9

I change to other way to add select component npx shadcn-ui@latest add select same issue.

Need to install the following packages:
[email protected]
Ok to proceed? (y) y
FetchError: request to https://ui.shadcn.com/registry/index.json failed, reason: read ECONNRESET
    at ClientRequest.<anonymous> (file:///Users/mecilmeng/.npm/_npx/125ee17d583c4e03/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517: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) {
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  erroredSysCall: 'read'
}
Failed to fetch components from registry.

Mecil9 avatar Oct 04 '23 10:10 Mecil9

I have the same issue: pnpm dlx shadcn-ui@latest add popover

Packages: +199
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 199, reused 199, downloaded 0, added 199, done
FetchError: request to https://ui.shadcn.com/registry/index.json failed, reason: read ECONNRESET
    at ClientRequest.<anonymous> (file:///Users/.../Library/pnpm/store/v3/tmp/dlx-86635/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:495: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) {
  type: 'system',
  errno: 'ECONNRESET',
  code: 'ECONNRESET',
  erroredSysCall: 'read'
}
Failed to fetch components from registry.```

malikkotb avatar Nov 22 '23 11:11 malikkotb

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Feb 25 '24 23:02 shadcn