While starting a react app on azure Linux container following error is thrown. The image runs successfully on docker container in local machine.
[34mℹ[39m [90m「wds」[39m: Project is running at http://192.168.0.13/ [34mℹ[39m [90m「wds」[39m: webpack output is served from [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /react-assignment1/public [34mℹ[39m [90m「wds」[39m: 404s will fallback to / Starting the development server...
node:events:491 throw er; // Unhandled 'error' event ^
Error: spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at: at ChildProcess._handle.onexit (node:internal/child_process:289:12) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe', path: '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe', spawnargs: [ '-NoProfile', '-NonInteractive', '–ExecutionPolicy', 'Bypass', '-EncodedCommand', 'UwB0AGEAcgB0ACAAIgBoAHQAdABwADoALwAvAGwAbwBjAGEAbABoAG8AcwB0ADoAMwAwADAAMAAiAA==' ] }
Node.js v18.14.1








