shadcn-ui/ui

[bug]: Fetch Error: Failed to fetch styles from registry.

Closed this issue · 2 comments

Describe the bug

i just tried to setup my project but i got fetch error in styles/index.json more details on error

FetchError: request to https://ui.shadcn.com/registry/styles/index.json failed, reason: getaddrinfo EAI_AGAIN ui.shadcn.com
    at ClientRequest.<anonymous> (file:///C:/Users/louay/AppData/Local/npm-cache/_npx/125ee17d583c4e03/node_modules/node-fetch/src/index.js:108:11)
    at ClientRequest.emit (node:events:515:28)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:515: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: 'EAI_AGAIN',
  code: 'EAI_AGAIN',
  erroredSysCall: 'getaddrinfo'
}
Failed to fetch styles from registry.

Affected component/components

none

How to reproduce

shell error npx shadcn-ui@latest init

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Windows 11

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

how to fix it?

just a connection problem from your public connection i just restarted my pc after 3 hours