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
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main.env
Error: Could not find a production build in the 'C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main.next' directory.
Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at NextNodeServer.getBuildId (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next-server.js:254:23)
at new Server (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\base-server.js at new NextNodeServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next-server.js:73:9)
at NextServer.createServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:152:24)
at async C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:165:31
at async NextServer.prepare (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:134:24)
at async Object.startServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\ at async nextStart (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\cli\next-start.js:68:5)
The text was updated successfully, but these errors were encountered:
ready - started server on 0.0.0.0:3000, url: http://localhost:3000 info - Loaded env from C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main.env
Error: Could not find a production build in the 'C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id at NextNodeServer.getBuildId (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next-server.js:254:23) at new Server (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\base-server.js at new NextNodeServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next-server.js:73:9) at NextServer.createServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:152:24) at async C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:165:31 at async NextServer.prepare (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:134:24) at async Object.startServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\ at async nextStart (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\cli\next-start.js:68:5)
这是打包运行吗,打包运营需要先执行npm run build,然后再执行npm run start , 因为nextjs启动需要一些指令,所以必须在项目根目录下执行命令
以下错误似乎是chatgpt-plus-main资料夹没有 .next档,需要'next build'......
PS C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\dist> npm run start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main.env
Error: Could not find a production build in the 'C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main.next' directory.
Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at NextNodeServer.getBuildId (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next-server.js:254:23)
at new Server (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\base-server.js at new NextNodeServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next-server.js:73:9)
at NextServer.createServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:152:24)
at async C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:165:31
at async NextServer.prepare (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\next.js:134:24)
at async Object.startServer (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\server\ at async nextStart (C:\Users\Oscar\Desktop\VScode\chatgpt-plus-main\node_modules\next\dist\cli\next-start.js:68:5)
The text was updated successfully, but these errors were encountered: