When I deloping my nodejs server. I'm getting this error in my system npm run build is working fine. But, here it is throwing error. Can anyone help me?

May 12 01:44:50 PM ==> Cloning from GitHub - Madhuresh123/Blog-MERN-webApp
May 12 01:44:51 PM ==> Checking out commit 75d0677934e95dc65184c5f0fff614958f2e413b in branch main
May 12 01:44:55 PM ==> Running build command ‘npm run build’…
May 12 01:44:55 PM
May 12 01:44:55 PM > my-mern-app@1.0.0 build /opt/render/project/src/api
May 12 01:44:55 PM > webpack --mode production
May 12 01:44:55 PM
May 12 01:44:55 PM CLI for webpack must be installed.
May 12 01:44:55 PM webpack-cli (GitHub - webpack/webpack-cli: Webpack's Command Line Interface)
May 12 01:44:55 PM
May 12 01:44:55 PM We will use “npm” to install the CLI via “npm install -D webpack-cli”.
May 12 01:44:55 PM Do you want to install ‘webpack-cli’ (yes/no): npm ERR! code ELIFECYCLE
May 12 01:44:55 PM npm ERR! errno 1
May 12 01:44:55 PM npm ERR! my-mern-app@1.0.0 build: webpack --mode production
May 12 01:44:55 PM npm ERR! Exit status 1
May 12 01:44:55 PM npm ERR!
May 12 01:44:55 PM npm ERR! Failed at the my-mern-app@1.0.0 build script.
May 12 01:44:55 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
May 12 01:44:55 PM
May 12 01:44:55 PM npm ERR! A complete log of this run can be found in:
May 12 01:44:55 PM npm ERR! /opt/render/.cache/_logs/2023-05-12T08_14_55_942Z-debug.log
May 12 01:44:55 PM ==> Build failed :disappointed:

Hey,

I see that you’ve already initiated a support ticket with us. To avoid any confusion or duplicate efforts, let’s continue the conversation there

Regards.
Jérémy, Render Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.