Cannot deploy because of npm ci legacy-peer-deps
walidadebayo
FREEOP

21 days ago

I included railway.json but it didn't work still

{
  "$schema": "https://schema.railpack.com",
  "steps": {
    "install": {
      "commands": ["npm install --legacy-peer-deps"]
    },
    "build": {
      "inputs": [{ "step": "install" }],
      "commands": ["npm run build"]
    }
  },
  
  "deploy": {
    "startCommand": "npm run start"
  }
}

Please, how can I resolve this issue

Solved$10 Bounty

Pinned Solution

 The config file should be named railpack.json or railway.toml, not railway.json. Railway doesn't recognize railway.json as a  config file.

3 Replies

 The config file should be named railpack.json or railway.toml, not railway.json. Railway doesn't recognize railway.json as a  config file.


Also What exactly is failing is it build errors, deploy errors, or the  app not starting?


walidadebayo
FREEOP

21 days ago

Thank you. The issue has been resolved


Status changed to Solved brody 20 days ago


Loading...