无法使用next.js安装shadcn-ui 13.4.9

os8fio9y  于 2023-10-18  发布在  其他
关注(0)|答案(1)|浏览(193)

FetchError:请求https://ui.shadcn.com/registry/styles/index.json失败,原因:在ClientRequest连接ETIMEDOUT 76.76.21.9:443。(file:/D:/Projects/WebProjects/Eccupce/my-app/node_modules/node-fetch/src/index. js:108:11)at ClientRequest.emit(node:events:513:28)at TLSSocket. socketErrorNT(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){ type:'system',错误号:“ETIMEDOUT”,代码:“ETIMEDOUT”,错误SysCall:'connect' }无法从注册表中提取样式。
我试过npm配置删除代理npm配置删除http-proxy npm配置删除https-proxy
但没有成功

nbewdwxp

nbewdwxp1#

你需要先运行“npm run dev”来加载下一个文件夹。然后安装shadcn组件。应该可以的

相关问题