I encountered an error while trying to run the Next.js app. Here's the detailed error message:
Unable to create Next.js App
npm run dev got:
nextjsapp@0.1.0 dev
Failed to start server
Error: listen EPERM: operation not permitted 0.0.0.0:3000
at Server.setupListenHandle [as _listen2] (node:net:1881:21)
at listenInCluster (node:net:1946:12)
at Server.listen (node:net:2044:7)
at /usr/home/dvcrvijay/domains/nextjs.dvcrvijay.serv00.net/public_nodejs/node_modules/next/dist/server/lib/start-server.js:280:16
at new Promise (<anonymous>)
at startServer (/usr/home/dvcrvijay/domains/nextjs.dvcrvijay.serv00.net/public_nodejs/node_modules/next/dist/server/lib/start-server.js:191:11)
at /usr/home/dvcrvijay/domains/nextjs.dvcrvijay.serv00.net/public_nodejs/node_modules/next/dist/server/lib/start-server.js:310:52
at Span.traceAsyncFn (/usr/home/dvcrvijay/domains/nextjs.dvcrvijay.serv00.net/public_nodejs/node_modules/next/dist/trace/trace.js:154:26)
at process.<anonymous> (/usr/home/dvcrvijay/domains/nextjs.dvcrvijay.serv00.net/public_nodejs/node_modules/next/dist/server/lib/start-server.js:310:35)
at process.emit (node:events:519:28) {
code: 'EPERM',
errno: -1,
syscall: 'listen',
address: '0.0.0.0',
port: 3000
}