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
Pinned Solution
21 days 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
21 days 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.
21 days ago
Also What exactly is failing is it build errors, deploy errors, or the app not starting?
Status changed to Solved brody • 20 days ago
