You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Tried installing with the command, "npx shadcn-ui@latest init". But it keeps throwing the following error.
FetchError: request to https://ui.shadcn.com/registry/styles/index.json failed, reason: connect ECONNREFUSED 76.76.21.93:443
at ClientRequest. (file:///Users/equallyai/.npm/_npx/125ee17d583c4e03/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
erroredSysCall: 'undefined'
}
Failed to fetch styles from registry.
Affected component/components
None
How to reproduce
npx shadcn-ui@latest init
Codesandbox/StackBlitz link
No response
Logs
None
System Info
wind11 node:v20.11
Before submitting
I've made research efforts and searched the documentation
I've searched for existing issues
The text was updated successfully, but these errors were encountered:
@captainyufei I tried asking ChatGPT,
you could follow these, and all the source code is available so you could try to self-host shadcn if you want to. The solution involves pre-downloading the necessary files and dependencies in an environment with internet access, transferring them to the offline environment, and setting up the project locally
I guess it's not a bug specific to Shadcn. It would have been better if you had asked in the discussions section.
Describe the bug
Describe the bug
Tried installing with the command, "npx shadcn-ui@latest init". But it keeps throwing the following error.
FetchError: request to https://ui.shadcn.com/registry/styles/index.json failed, reason: connect ECONNREFUSED 76.76.21.93:443
at ClientRequest. (file:///Users/equallyai/.npm/_npx/125ee17d583c4e03/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:518:28)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
erroredSysCall: 'undefined'
}
Failed to fetch styles from registry.
Affected component/components
None
How to reproduce
npx shadcn-ui@latest init
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: