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

4 months 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

4 months ago

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

4 months ago

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


4 months ago

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


walidadebayo
FREEOP

4 months ago

Thank you. The issue has been resolved


Status changed to Solved brody 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...