Cannot build project on Railway

I am very new to programming, and this whole scene in general. I have a github repo that I can successfully build in Vercel (without adding any additional scripts). However, the build in Railway always fails. I am trying to understand why this is occurring, and I am hoping to solve this and continue with using Railway. This is the error from Railway - ============== Using Nixpacks ==============  context: 7d40e5eab52bcc87ed6c298b344f0a62 Nixpacks build failed   ╔═════════ Nixpacks v1.10.0 ════════╗ ║ setup │ nodejs-16_x, npm-8_x ║ ║───────────────────────────────────║ ║ install │ npm ci ║ ║───────────────────────────────────║ ║ build │ npm run build ║ ║───────────────────────────────────║ ║ start │ ║ ╚═══════════════════════════════════╝  Error: No start command could be found
11 Replies
Percy
Percy17mo ago
Project ID: N/A
adam_maine
adam_maineOP17mo ago
N/A
Brody
Brody17mo ago
you need to add a start script to your package.json what kind of app is this?
adam_maine
adam_maineOP17mo ago
It is a website, that has a 3d veiwer
Brody
Brody17mo ago
cool ^
adam_maine
adam_maineOP17mo ago
sorry but I have no idea how to do this. do I just add npm start in the beginning of the package.json file?
Brody
Brody17mo ago
what command do you run to start the app locally?
adam_maine
adam_maineOP17mo ago
npm run dev. Thats what starts the local server.
Brody
Brody17mo ago
can you send me your package.json file please
Want results from more Discord servers?
Add your server