2 months 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/community@0.3.55
npm error Found: openai@5.15.0
npm error node_modules/openai
npm error openai@"5.15.0" from the root project
npm error peer openai@"*" from @langchain/community@0.3.55
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/community@0.3.55
npm error node_modules/@langchain/community
npm error @langchain/community@"0.3.55" from the root project
npm error
npm error Conflicting peer dependency: openai@4.104.0
npm error node_modules/openai
npm error peer openai@"^4.62.1" from @browserbasehq/stagehand@1.14.0
npm error node_modules/@browserbasehq/stagehand
npm error peer @browserbasehq/stagehand@"^1.0.0" from @langchain/community@0.3.55
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 >
5 Replies
2 months ago
You can either:
Use Open AI SDK v4
npm install openai@^4.62.1Add legacy peer to your ci command:
npm ci --legacy-peer-depsOverride conflicting dependency... (in package.json)
{ "overrides": { "@browserbasehq/stagehand": { "openai": "$openai" } } }Or, if you don't need stagehand, override it with empty
(in package.json){ "overrides": { "@browserbasehq/stagehand": "npm:empty-npm-package@1.0.0" } }
So, there you go, you have 4 possible solutions 
2 months ago
I wouldn't recommend downgrading openai sdk a major version. Check for security updates, deprecated functions, etc...
2 months 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.
2 months 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
2 months 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