Skip to content
Build failing deploy
littwa
OP

4 hours ago

Build Failed: build daemon returned an error < failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 1

file:///app/node_modules/ora/node_modules/string-width/index.js:20

const visibleCharacterRegex = /[^\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]/v;

                          ^

SyntaxError: Invalid regular expression flags

at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:152:18)

at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:299:14)

Node.js v18.20.5

Awaiting User Response$20 Bounty

Pinned Solution

4 hours ago

do you have your node version set in your package.json ? if not I'd recommend setting it there. Node 18 is the default node version used when no node version is set so that might be what's happening here.

6 Replies

Railway
BOT

4 hours ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 4 hours ago


4 hours ago

Have you tried bumping your node version? I think /v is a node 20 thing and you're on node 18


dev

Have you tried bumping your node version? I think `/v` is a node 20 thing and you're on node 18

littwa
OP

4 hours ago

My Node version v26.13.1 I don't no why got Node.js v18.20.5 from Railway


4 hours ago

do you have your node version set in your package.json ? if not I'd recommend setting it there. Node 18 is the default node version used when no node version is set so that might be what's happening here.


4 hours ago


{

  "engines": {

    "node": "20"

  }

}

^ to set node in your package.json


Status changed to Solved littwa • about 4 hours ago


dev

do you have your node version set in your `package.json` ? if not I'd recommend setting it there. Node 18 is the default node version used when no node version is set so that might be what's happening here.

littwa
OP

4 hours ago

Thank you, Friend! After point Node.js version(22-26) deploy has been successful!


Status changed to Awaiting Conductor Response Railway • about 4 hours ago


4 hours ago

Happy I could help 🙂


Status changed to Awaiting User Response Railway • about 4 hours ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...