Build failed with npm

I am trying to deploy a node js app.
but while bilding this error in the image shows.
I already have a .node-version file contains 16.16.0

In the events section this message show Exited with status 1 while running your code.

I found the solution

I went to settings, and edited build command from npm to npm install

I hope this help anyone

I had the same ‘Build Failed’ on my node web service. The service still seemed to work when I went to the deployed url though.

I changed my build command from npm to npm install like you suggested, and there was no more failure. Nice work figuring that out!

Any idea why this is happening, or why that solution works?

Can you put the GitHub repo link here. I will take a look at it and try to solve it.