How to deploy simple express app from Github to Netlify

Hi all!

I’m trying to deploy a simple express app (HTML/CSS/JS) sitting in a Github repo to Netlify to a domain we already own.

Hiya, sorry you are having trouble with your build.

This Support Guide contains a ton of useful debugging tips that can likely help you solve your problem :slight_smile: Additionally, this Support Guide houses all of our resources for debugging build and deploy issues.

We also recommend trying to search the forums with the build error you encountered - it’s likely your question was already asked by someone else!

Here are also some additional resources:

If you are still having problems, please provide as much information as you can on what you have already tried, what your build settings are, your package.json, etc. Thanks!

Hi @SkyuOfficial

There are a few issues here.

The build command is set to npm install && npm run build. The npm install part is not required as Netlify will automatically install dependencies from the package.json in the root of the repository.

Further, there is no build script in the package.json in the repository, and in the netlify.toml the functions directory is set to express which is a non-existent directory.

From looking at the dependencies, it seems you are trying to run an express app. I suggest reading over the following Support Guide to see why this won’t work (in the current form.)