Error running command: Build script returned non-zero exit code: 254

hey thib21,

do you have a local package.json that you can commit to the repo and just upload that? then we will read through that file on deploy and download & install the needed dependencies for you.

npm init is a command that really only needs to be run once, when you start working on a project. as you add dependencies and complexity, that package.json gets updated, kind of like a shopping list, and then when you deploy, that shopping list indicates what needs to be fetched from the grocery store in order to build a sandwich (your site). So thats why you wouldnt run npm init on deploy - we just run npm install for you.

If you don’t have any dependencies, as you say, only html css, then you actually don’t need to “build” a site and can skip the build step. The build step is really for more complicated sites, usually using javascript based static site generators that need to run some processes to generate html from js.

Here is a thread where i explain what that might look like: