Can't seem to install an existing project without --legacy-peer-deps
nevo-david
PROOP

2 years ago

The project was working well, but on a new commit, it started throwing errors on lock files.

I matched the node version and npm version with the one on railway.

I am using NX + nix

Closed

72 Replies

2 years ago

can you link to a deployment when you first saw this issue?


nevo-david
PROOP

2 years ago

Yes


nevo-david
PROOP

2 years ago

3f010081-49b8-4c49-bada-565a6ae3ad13


2 years ago

full url link please?


nevo-david
PROOP

2 years ago

it throws locks error on a deep package json



2 years ago

to the build that threw the errors


nevo-david
PROOP

2 years ago

this is the link


2 years ago

that is a link to /logs


nevo-david
PROOP

2 years ago

of the log explorer of the build


2 years ago

i would prefer a link to the failed build please


nevo-david
PROOP

2 years ago

Where to click? I click on the number next to "Backend"

1308635254923460608


2 years ago

copy the url



2 years ago

perfect


2 years ago

so you deleted your local node_modules and ran npm ci locally without issue?


nevo-david
PROOP

2 years ago

Yes


nevo-david
PROOP

2 years ago

I don't know if you have time, but it's for my open-source project

https://github.com/gitroomhq/postiz-app/


nevo-david
PROOP

2 years ago

you can try and run it with npm ci


2 years ago

i did -

1308639706103418880


nevo-david
PROOP

2 years ago

so weird


nevo-david
PROOP

2 years ago

I have a super computer


2 years ago

1308639899355840553


nevo-david
PROOP

2 years ago

but railway running

║ setup │ nodejs_20, npm-9_x, openssl ║


nevo-david
PROOP

2 years ago

with npm 9


2 years ago

i dont think that matters all too much, its clear i can repro locally with npm 10, so the issue is elsewhere


2 years ago

let me get you the commit im working with


nevo-david
PROOP

2 years ago

great


2 years ago

f10bdbccea6fd99c954329569001484518f8ac14


2 years ago


nevo-david
PROOP

2 years ago

I mean, would it be possible to just make a PR


nevo-david
PROOP

2 years ago

with the package json


nevo-david
PROOP

2 years ago

created for you?


nevo-david
PROOP

2 years ago

I can just use that one 😄


2 years ago

since i can repro, you want me to update the lock file and submit a pr?


nevo-david
PROOP

2 years ago

Only if it's possible, yes


nevo-david
PROOP

2 years ago

clearly my computer does it wrong


2 years ago

yeah i can do that, let me grab the latest repo, i just grabbed the code from the commit of the deploy you linked


nevo-david
PROOP

2 years ago

1308641131172728832


nevo-david
PROOP

2 years ago

Thank you so much


2 years ago

wow eiter npm is slow or my internet, perhaps both


2 years ago


nevo-david
PROOP

2 years ago

Thank you so much!


nevo-david
PROOP

2 years ago

Will add it now 🙂


2 years ago

do your testing please, i did not run the project locally


nevo-david
PROOP

2 years ago

that's ok, worst case I will revert, the latest docker version will not be updated


2 years ago

oh wow i didnt know vercel did this too

1308647232907640913


nevo-david
PROOP

2 years ago

Yeah, I need to remove it, it's annoying 😄


2 years ago

railway does it, and its not removable haha


nevo-david
PROOP

2 years ago

I think in vercel it's also not removeable only if you disable preview deployments


2 years ago

fair


2 years ago

okay, let me know how it goes!


nevo-david
PROOP

2 years ago

waiting 😄

1308647595186327674


nevo-david
PROOP

2 years ago

so far looks good


2 years ago

i forgot to ask, why vercel, why not run the frontend on railway too?


nevo-david
PROOP

2 years ago

Honestly, many people pitched me about the advantages of running on vercel with all their special cases how they handle nextjs


nevo-david
PROOP

2 years ago

with serverless functions and edge


nevo-david
PROOP

2 years ago

etc...


nevo-david
PROOP

2 years ago

in railway it will be containerized


2 years ago

is that bad?


nevo-david
PROOP

2 years ago

Honestly, I don't know


nevo-david
PROOP

2 years ago

it would be easier to put on railway that's for sure


nevo-david
PROOP

2 years ago

cheaper probably also


2 years ago

maybe thats a weekend project


nevo-david
PROOP

2 years ago

it will take me a few minutes to do it with nix


nevo-david
PROOP

2 years ago

Just not sure about all the pros and cons


2 years ago

it doesnt need to be done with nixpacks, you could do it with a dockerfile


nevo-david
PROOP

2 years ago

Yay! you commit worked!


2 years ago

awsome!


nevo-david
PROOP

2 years ago

And I got a new contributor 😎


nevo-david
PROOP

2 years ago

Thank you so much for all the help


2 years ago

any time! let me know if you face any build errors when you try running the frontend on railway too


Welcome!

Sign in to your Railway account to join the conversation.

Loading...