2 months ago
Hello fellow entrepreneurs I’m 90% of the way this app I have no coding skills whatsoever but I managed to make it this far anyone who can please help thx All I can say is it goes back and forth between two errors
0 Replies
2 months ago
Have you tried removing that RUN command entirely? Railway will cache layers on it's own.
2 months ago
* Removing just the cache part, let me rewrite it for you
2 months ago
RUN npm ci --omit=dev --no-audit --no-fund
2 months ago
Change it to
RUN npm i --omit=dev --no-audit --no-fund
2 months ago
@Eric2Legit247 Better solution:
Delete package-lock.json on your local machine. Run npm i there. Then push the new file. Change the command back to the ci one.
Yes I will I think the building the image gonna time out cause it 7 mins in
2 months ago
Plesae check to see if your agent re-added the cache mount RUN command in the Dockerfile.
2 months ago
Can you share the entirety of the Dockerfile now?
2 months ago
It very much did add it back.

2 months ago
Delete that line yourself. Without the AI. Replace it with RUN прi ci --omit-dev --no-audit --no-fund
2 months ago
Perfect
2 months ago
Commit and it should automatically redeploy, yes
2 months ago
Did you yourself do the action of deleting package lock and reinstalling or did your agent?
2 months ago
Yes. Please. Open your terminal and run the following.
rm package-lock.jsonnpm i
2 months ago
You're in the wrong directory, run cd .. first.
2 months ago
Then run those two commands again.
2 months ago
Yellowbook

2 months ago
Awesomesauce
2 months ago
git commit -m "fix: update package-lock.json"
2 months ago
git push
2 months ago
Okay. Is this repository public?
2 months ago
Found it myself. Going to take a crack at it.
https://github.com/DrippyEric247/final10-backend
2 months ago
@Eric2Legit247 I notice you have two branches. Is Railway set to be using master rather than main?
2 months ago
@Eric2Legit247 I can build the image just fine. Can you delete the service, recreate it, and set the branch to master again?
2 months ago
I apologize, I missed the double directory. You do not need to delete the service.
Run these commands. By hand. Without AI.
cd serverrm package-lock.jsonnpm i
2 months ago
Yes. Not to be rude, but you need to stop using your agent for this. It has clearly proven to not understand the issue, and might go out and change other things.

2 months ago
All you need to do is open a terminal and copy paste the command I'm sending in. You do not need an AI for that.
2 months ago
Oh my. Somehow I missed that rm didn't work above.
It's del package-lock.json instead of the rm command
2 months ago
Can't believe I missed that even with Brody reacting…
2 months ago
del package-lock.jsonnpm i
2 months ago
<:frogsigh:1424892413314469988> Yeah try it.
2 months ago
After this I'm going to sleep
2 months ago
@Eric2Legit247 Did that end up working?
a month ago
Hey, can you click on the view logs button and sends us the full logs?
a month ago
is this your repository? https://github.com/DrippyEric247/final10-backend
a month ago
accept the following PR and wait for Railway to deploy your code
https://github.com/DrippyEric247/final10-backend/pull/1
a month ago
if you run into any issues, let me know
a month ago
Railway should already be deploying your code
a month ago
They have a whole bunch of branches with multiple implying main, as well as a whole bunch of different package locks in different directories
a month ago
I've done another PR
https://github.com/DrippyEric247/final10-backend/pull/2
There I remove any node_modules folder which shouldn't be pushed and also fix the package locks
If after merging this PR nothing happens on Railway, please confirm that your services are using the master branch as the default.
a month ago
Go to your service settings and look for "watch patterns"
a month ago
and then remove it
a month ago
Are you sure you're using the master branch on your service? I had no problems installing dependencies the last time
a month ago
I see that it's a problem with the Dockerfile, give me a minute to debug it further.
a month ago
Now that should do the trick:
https://github.com/DrippyEric247/final10-backend/pull/3
a month ago
explanation: you were using a .npmrc file which wasn't included in the Dockerfile, thus causing package-lock.json differences.






















