2 months ago
[Region: us-east4]
╭────────────────╮
│ Railpack 0.8.0 │
╰────────────────╯
↳ Detected Node
↳ Using npm package manager
Packages
──────────
node │ 22.20.0 │ package.json > engines > node (22)
Steps
──────────
▸ install
$ npm ci
▸ build
$ npm run build
Deploy
──────────
$ npm run start
Successfully prepared Railpack plan for build
context: 76q1-NILk
load build definition from railpack-plan.json
0ms
install mise packages: node
929ms
mise ERROR error sending request for url (https://nodejs.org/dist/index.json)
mise ERROR client error (Connect)
mise ERROR tcp connect error: Connection refused (os error 111)
mise ERROR Connection refused (os error 111)
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
ERROR: failed to build: failed to solve: process "sh -c mise trust -a && mise install" did not complete successfully: exit code: 1
I am having a hard time deploying my next.js application. Works fine on my local env. Works fine on Vercel. But here i am having a problem with mise. I think this is on Railway end? Can you point me out to how I could solve this? I tried fixing the node version, tried leaving it >= 22.12. While looking into the ERROR it would make me think that this is a problem with the nodejs registry, but it is accessible via direct request. So this is probably a problem with railways mise client?
Thanks in advance.
1 Replies
2 months ago
Here is what cleared the issue for me. Create a nixpacks.toml file in your project root with the following:
[phases.setup]
nixPkgs = ['nodejs_20']
[phases.install]
cmds = ['npm ci']
cmds = ['npm run build']
[start]
cmd = 'npm run start'
This forces Railway to use a specific node version, circumventing the use of mise
