banned-historical-archives/banned-historical-archives.github.io

出现4708错误

Closed this issue · 3 comments

Error: connect ECONNREFUSED ::1:3001
✓ Compiled /articles/[id] in 1592ms (2038 modules)
⨯ TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async getStaticProps (webpack-internal:///./pages/articles/[id].tsx:105:23) {
cause: Error: connect ECONNREFUSED ::1:3001
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 3001
},
page: '/articles/0252e5f85f'

windows本地部署,最后一步npm run dev失败,提示'COMMIT_HASH' 不是内部或外部命令,也不是可运行的程序
运行npx next dev可以启动,localhost:3000可以看到界面,但是点击所有文档,后台都出现上述错误

请问需要修改什么参数

npm run dev 之前执行 npm run dev:nextjs-helper

解决了,谢谢,不知道是否可以更改下现在的本地安装教程?

已修改,谢谢