Skip to content
FAILED DEPLOYMENT
lalabalavujon-a11y
OP

a year ago

stage-0

RUN npm ci

1s

npm warn config production Use --omit=dev instead.

npm error code ERESOLVE

npm error ERESOLVE could not resolve

npm error

npm error While resolving: @langchain/[email protected]

npm error Found: [email protected]

npm error node_modules/openai

npm error openai@"5.15.0" from the root project

npm error peer openai@"*" from @langchain/[email protected]

npm error node_modules/@langchain/community

npm error @langchain/community@"0.3.55" from the root project

npm error 1 more (langsmith)

npm error

npm error Could not resolve dependency:

npm error peer @browserbasehq/stagehand@"^1.0.0" from @langchain/[email protected]

npm error node_modules/@langchain/community

npm error @langchain/community@"0.3.55" from the root project

npm error

npm error Conflicting peer dependency: [email protected]

npm error node_modules/openai

npm error peer openai@"^4.62.1" from @browserbasehq/[email protected]

npm error node_modules/@browserbasehq/stagehand

npm error peer @browserbasehq/stagehand@"^1.0.0" from @langchain/[email protected]

npm error node_modules/@langchain/community

npm error @langchain/community@"0.3.55" from the root project

npm error

npm error Fix the upstream dependency conflict, or retry

npm error this command with --force or --legacy-peer-deps

npm error to accept an incorrect (and potentially broken) dependency resolution.

npm error

npm error

npm error For a full report see:

npm error /root/.npm/_logs/2025-12-31T09_46_38_926Z-eresolve-report.txt

npm error A complete log of this run can be found in: /root/.npm/_logs/2025-12-31T09_46_38_926Z-debug-0.log

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

$10 Bounty

5 Replies

jorgeferrarice

a year ago

You can either:

  1. Use Open AI SDK v4 npm install openai@^4.62.1
  2. Add legacy peer to your ci command: npm ci --legacy-peer-deps
  3. Override conflicting dependency... (in package.json) { "overrides": { "@browserbasehq/stagehand": { "openai": "$openai" } } }
  4. Or, if you don't need stagehand, override it with empty 🙂 (in package.json){ "overrides": { "@browserbasehq/stagehand": "npm:[email protected]" } }

So, there you go, you have 4 possible solutions 🙂


jorgeferrarice

a year ago

I wouldn't recommend downgrading openai sdk a major version. Check for security updates, deprecated functions, etc...


jorgeferrarice

a year ago

You're just adding AI generated responses without context, there's even something from your previous context, something about GitHub Runners? Please, be careful when giving other users instructions for configuring their projects, keep in mind that this might be a business project and you might be harming the user financially and professionally.


mingmatenzing

a year ago

I think you are facing the classic npm ci error where the package.json and package-json.lock files mistach with each other interms of versions. I was facing similar issues and I've recently found a work around by changing the install command... You can read this article on how to do it.. hope it helps https://medium.com/@mingmatenzing689/how-to-fix-npm-ci-error-on-railway-65f6ef87c8a2


alooks1

a year ago

Downgrade OpenAI

npm uninstall openai

npm install openai@^4.62.1

and Regenerate lockfile

rm -rf node_modules package-lock.json

npm install then commit


Welcome!

Sign in to your Railway account to join the conversation.

Loading...