9 months ago
I have remove npm-lock.json and add yarn.lock by running yarn install but railway is still trying npm i to install dependencies.
I have tried setting build command to yarn install but no luck.
Attaching build logs below
You reached the start of the range → Jul 20, 2024 6:35 PM
8 2.273 npm notice Changelog: ;
8 2.273 npm notice Run npm install -g npm@10.8.2
to update!
8 2.273 npm notice
8 2.274 npm ERR! code ERESOLVE
8 2.276 npm ERR! ERESOLVE unable to resolve dependency tree
8 2.276 npm ERR!
8 2.276 npm ERR! While resolving: plate-mate@0.0.1
8 2.276 npm ERR! Found: @nestjs/websockets@10.3.10
8 2.276 npm ERR! node_modules/@nestjs/websockets
8 2.276 npm ERR! @nestjs/websockets@"^10.3.7" from the root project
8 2.276 npm ERR! peer @nestjs/websockets@"^10.0.0" from @nestjs/platform-socket.io@10.3.10
8 2.276 npm ERR! node_modules/@nestjs/platform-socket.io
8 2.276 npm ERR! @nestjs/platform-socket.io@"^10.3.7" from the root project
8 2.276 npm ERR! peerOptional @nestjs/platform-socket.io@"^10.0.0" from @nestjs/websockets@10.3.10
8 2.276 npm ERR!
8 2.276 npm ERR! Could not resolve dependency:
8 2.276 npm ERR! peerOptional @nestjs/websockets@"^9.0.0" from @nestjs/core@9.4.3
8 2.276 npm ERR! node_modules/@nestjs/core
8 2.276 npm ERR! @nestjs/core@"^9.0.0" from the root project
8 2.276 npm ERR! peer @nestjs/core@">=7.0.9" from @nestjs-modules/mailer@1.11.2
8 2.276 npm ERR! node_modules/@nestjs-modules/mailer
8 2.276 npm ERR! @nestjs-modules/mailer@"^1.8.1" from the root project
8 2.276 npm ERR! 2 more (@nestjs/microservices, @nestjs/platform-express)
8 2.276 npm ERR!
8 2.276 npm ERR! Fix the upstream dependency conflict, or retry
8 2.276 npm ERR! this command with --force, or --legacy-peer-deps
8 2.276 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
8 2.276 npm ERR!
8 2.276 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
8 2.278
8 2.278 npm ERR! A complete log of this run can be found in:
8 2.278 npm ERR! /root/.npm/logs/2024-07-20T133534924Z-debug-0.log
8 ERROR: process "/bin/sh -c npm install" did not complete successfully: exit code: 1
> [4/6] RUN npm install:
2.276 npm ERR! 2 more (@nestjs/microservices, @nestjs/platform-express)
2.276 npm ERR!
2.276 npm ERR! Fix the upstream dependency conflict, or retry
2.276 npm ERR! this command with --force, or --legacy-peer-deps
2.276 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
2.276 npm ERR!
2.276 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
2.278
2.278 npm ERR! A complete log of this run can be found in:
2.278 npm ERR! /root/.npm/logs/2024-07-20T133534924Z-debug-0.log
Dockerfile:11
9 |
10 |
11 | >>> RUN npm install
12 | # If you are building your code for production
13 | # RUN npm ci --omit=dev
ERROR: failed to solve: process "/bin/sh -c npm install" did not complete successfully:
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
9 months ago
npm-lock.json
That's not a real filename in the context of node projects.
I have tried setting build command to yarn install
Build commands are not install commands, please remove the incorrectly placed command.
You need to have only yarn's lock file in your repo.