a year ago
Hi,
My frontend Nextjs docker application suddenly stopped deploying. What is odd is that 1. This worked before (both on my local Mac, local Linux, and Railway) and 2. I have not changed anything w.r.t. the deployment. It's complaining about the package.json not being there, but as you can see in the repo (/frontend folder), it's there. Again: both on my OSX and my Linux machine this docker container just flies without any problems. Any ideas what could be wrong?
:
[5/5] RUN npm install:
0.948 npm error code ENOENT
0.948 npm error syscall open
0.948 npm error path /home/node/app/package.json
0.948 npm error errno -2
0.948 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/node/app/package.json'
0.948 npm error enoent This is related to npm not being able to find a file.
0.948 npm error enoent
0.950 npm error A complete log of this run can be found in: /root/.npm/logs/2024-08-01T060410200Z-debug-0.log
ⓘ Deployment information is only viewable by project members and Railway employees.
3 Replies
a year ago
https://github.com/guyonmatteau/digital-lions
It's about the Dockerfile in the /frontend folder.
Status changed to Solved brody • 11 months ago