Loading dependencies with Node.js

When I tried to deploy my Node.js application, I received the following error:

Error: Cannot find module 'express'

It seems like my dependencies haven’t been installed. How do I go about doing that?

Hi, can you please try adding npm install to your build command? For reference, we do have quickstart guides for several popular frameworks https://render.com/docs

1 Like

Thank you @Jade_Paoletta!

What would the syntax look like for adding it to my build command?

Right now, it’s npm build. Would I add npm install or replace npm build with npm install?

So I wouldn’t replace it completely, just add it on. This might look something like npm install; npm build

Let me know if that helps.

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