iisnode encountered an error when processing the request.
HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
⚠ Found lockfile missing swc dependencies, patching... 'npm' is not recognized as an internal or external command, operable program or batch file. 'npm' is not recognized as an internal or external command, operable program or batch file. 'npm' is not recognized as an internal or external command, operable program or batch file. 'npm' is not recognized as an internal or external command, operable program or batch file. 'npm' is not recognized as an internal or external command, operable program or batch file. 'npm' is not recognized as an internal or external command, operable program or batch file. 'npm' is not recognized as an internal or external command, operable program or batch file. ⨯ Failed to patch lockfile, please try uninstalling and reinstalling next in this workspace Error: Failed to get registry from "npm". at Array.map (<anonymous>) { [cause]: Error: Command failed: npm config get registry --no-workspaces 'npm' is not recognized as an internal or external command, operable program or batch file. at Array.map (<anonymous>) { status: 1, signal: null, output: [ null, <Buffer >, <Buffer 27 6e 70 6d 27 20 69 73 20 6e 6f 74 20 72 65 63 6f 67 6e 69 7a 65 64 20 61 73 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20 6f 72 20 65 78 74 65 72 6e 61 6c ... 44 more bytes> ], pid: 96, stdout: <Buffer >, stderr: <Buffer 27 6e 70 6d 27 20 69 73 20 6e 6f 74 20 72 65 63 6f 67 6e 69 7a 65 64 20 61 73 20 61 6e 20 69 6e 74 65 72 6e 61 6c 20 6f 72 20 65 78 74 65 72 6e 61 6c ... 44 more bytes> } } (node:2848) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use `node --trace-deprecation ...` to show where the warning was created) Application has thrown an uncaught exception and is terminated: Error: Could not find a production build in the '.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 setupFsCheck (C:\vhosts\smok.ir\httpdocs\node_modules\next\dist\server\lib\router-utils\filesystem.js:148:19) at async initialize (C:\vhosts\smok.ir\httpdocs\node_modules\next\dist\server\lib\router-server.js:108:23) at async NextCustomServer.prepare (C:\vhosts\smok.ir\httpdocs\node_modules\next\dist\server\next.js:268:28)