[GH-ISSUE #6] npm run dev 时报错,是版本问题么? #1

Closed
opened 2026-03-02 04:05:13 +03:00 by kerem · 5 comments
Owner

Originally created by @cxandph on GitHub (Jul 15, 2022).
Original GitHub issue: https://github.com/findyourmagic/dber/issues/6

error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Not supported
at Object.loadConfig [as default] (E:\CodeResearchFront\dber\node_modules\next\dist\server\config.js:68:78)
at async NextServer.loadConfig (E:\CodeResearchFront\dber\node_modules\next\dist\server\next.js:114:22)
at async NextServer.prepare (E:\CodeResearchFront\dber\node_modules\next\dist\server\next.js:96:24)
at async E:\CodeResearchFront\dber\node_modules\next\dist\cli\next-dev.js:127:9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! db-graph@ dev: next dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the db-graph@ dev script.

Originally created by @cxandph on GitHub (Jul 15, 2022). Original GitHub issue: https://github.com/findyourmagic/dber/issues/6 error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error Error: Not supported at Object.loadConfig [as default] (E:\CodeResearchFront\dber\node_modules\next\dist\server\config.js:68:78) at async NextServer.loadConfig (E:\CodeResearchFront\dber\node_modules\next\dist\server\next.js:114:22) at async NextServer.prepare (E:\CodeResearchFront\dber\node_modules\next\dist\server\next.js:96:24) at async E:\CodeResearchFront\dber\node_modules\next\dist\cli\next-dev.js:127:9 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! db-graph@ dev: `next dev` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the db-graph@ dev script.
kerem closed this issue 2026-03-02 04:05:13 +03:00
Author
Owner

@iqiql commented on GitHub (Jul 15, 2022):

用yarn dev启动吧,我用npm启动之后报了个语法错误,可能是npm install的时候少了crypto这个包,用yarn install 然后yarn dev就可以了,期待作者的后续更新~

<!-- gh-comment-id:1185090207 --> @iqiql commented on GitHub (Jul 15, 2022): 用yarn dev启动吧,我用npm启动之后报了个语法错误,可能是npm install的时候少了crypto这个包,用yarn install 然后yarn dev就可以了,期待作者的后续更新~
Author
Owner

@findyourmagic commented on GitHub (Jul 15, 2022):

@cxandph
node版本是什么?node v16.13.1 下暂时没有复现这个问题

<!-- gh-comment-id:1185130455 --> @findyourmagic commented on GitHub (Jul 15, 2022): @cxandph node版本是什么?node v16.13.1 下暂时没有复现这个问题
Author
Owner

@findyourmagic commented on GitHub (Jul 16, 2022):

暂时先关闭了,如果还是有问题可以附带一下版本信息

<!-- gh-comment-id:1186120155 --> @findyourmagic commented on GitHub (Jul 16, 2022): 暂时先关闭了,如果还是有问题可以附带一下版本信息
Author
Owner

@yanxiaochuan commented on GitHub (Jul 21, 2022):

node v12.18.2 启动报错

<!-- gh-comment-id:1191243008 --> @yanxiaochuan commented on GitHub (Jul 21, 2022): node v12.18.2 启动报错
Author
Owner

@findyourmagic commented on GitHub (Jul 21, 2022):

@yanxiaochuan 感谢提出问题。
应该是 next.js 不支持 v12 了,目前项目里 .node-version 文件指定的版本是 v16.13.1,可以升级一下 node 版本或者用 nvm 之类的多版本工具试试。

<!-- gh-comment-id:1191304314 --> @findyourmagic commented on GitHub (Jul 21, 2022): @yanxiaochuan 感谢提出问题。 应该是 next.js 不支持 v12 了,目前项目里 .node-version 文件指定的版本是 v16.13.1,可以升级一下 node 版本或者用 nvm 之类的多版本工具试试。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dber#1
No description provided.