Skip to content

Commit 6c7e3cb

Browse files
GeneAIclaude
andcommitted
fix: Add npm to Railway build configuration
Fixes Railway deployment error where npm command was not found. Changes: - Added npm-9_x to nixPkgs in phases.setup - Added --legacy-peer-deps flag for npm ci compatibility - Improved command formatting for clarity This resolves the "npm: command not found" error that was causing repeated deployment failures on Railway. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7be8150 commit 6c7e3cb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

nixpacks.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
[phases.setup]
2-
nixPkgs = ["nodejs_20"]
2+
nixPkgs = ["nodejs_20", "npm-9_x"]
33

44
[phases.install]
5-
cmds = ["cd website && npm ci"]
5+
cmds = [
6+
"cd website",
7+
"npm ci --legacy-peer-deps"
8+
]
69

710
[phases.build]
8-
cmds = ["cd website && npm run build"]
11+
cmds = [
12+
"cd website",
13+
"npm run build"
14+
]
915

1016
[start]
1117
cmd = "cd website && npm run start"

0 commit comments

Comments
 (0)