a year 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
82 Replies
a year ago
Have you tried removing that RUN command entirely? Railway will cache layers on it's own.
a year ago
* Removing just the cache part, let me rewrite it for you
a year ago
RUN npm ci --omit=dev --no-audit --no-fund
a year ago
Change it to
RUN npm i --omit=dev --no-audit --no-fund
a year 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
a year ago
Plesae check to see if your agent re-added the cache mount RUN command in the Dockerfile.
a year ago
Can you share the entirety of the Dockerfile now?
a year ago
It very much did add it back.

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

a year ago
Awesomesauce
a year ago
git commit -m "fix: update package-lock.json"
a year ago
git push
a year ago
Okay. Is this repository public?
a year ago
Found it myself. Going to take a crack at it.
a year ago
@Eric2Legit247 I notice you have two branches. Is Railway set to be using master rather than main?
a year ago
@Eric2Legit247 I can build the image just fine. Can you delete the service, recreate it, and set the branch to master again?
a year ago
I apologize, I missed the double directory. You do not need to delete the service.
Run these commands. By hand. Without AI.
cd server
rm package-lock.json
npm i
a year 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.

a year 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.
a year ago
Oh my. Somehow I missed that rm didn't work above.
It's del package-lock.json instead of the rm command
a year ago
Can't believe I missed that even with Brody reacting...
a year ago
del package-lock.json
npm i
a year ago
<:frogsigh:1424892413314469988> Yeah try it.
a year ago
After this I'm going to sleep
a year ago
@Eric2Legit247 Did that end up working?
a year ago
Hey, can you click on the view logs button and sends us the full logs?
a year ago
is this your repository? https://github.com/DrippyEric247/final10-backend
a year ago
accept the following PR and wait for Railway to deploy your code
a year ago
if you run into any issues, let me know
a year ago
Railway should already be deploying your code
a year 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 year 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 year ago
Go to your service settings and look for "watch patterns"
a year ago
and then remove it
a year ago
Are you sure you're using the master branch on your service? I had no problems installing dependencies the last time
a year ago
I see that it's a problem with the Dockerfile, give me a minute to debug it further.
a year ago
Now that should do the trick:
a year ago
explanation: you were using a .npmrc file which wasn't included in the Dockerfile, thus causing package-lock.json differences.






















