The ‘npx shadcn-ui@latest init’ cannot be executed on the company network. How can I init it offline? #4109
Unanswered
captainyufei
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tried installing with the command, "npx shadcn-ui@latest init" in my company network. But it keeps throwing the following error.
I believe the company's network firewall is preventing access to this domain, so I hope to initialize it offline.
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.
Beta Was this translation helpful? Give feedback.
All reactions