a year ago
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
4 Replies
a year ago
This looks like an application specific issue. Can you please try googling, debugging, checking to see if there are issues in your project configuration? Running a quick search, I've found: https://stackoverflow.com/questions/77704501/unable-to-deploy-next-js-app-process-bin-bash-ol-pipefail-c-npm-ci-did-not that could help
Status changed to Awaiting User Response Railway • about 1 year ago
a year ago
The link you provided doesn’t contain the solution. I tried the solution mentioned in the link, but I think the issue is caused by --legacy-peer-deps. Should I add this to the build command or to the environment variables?
Status changed to Awaiting Railway Response Railway • about 1 year ago
a year ago
Unfortunately, this didn’t solve the issue. I added the ci:false environment variable, but it still didn’t work.
a year ago
Here's a few suggestions:
Could you try comparing the differences in your Next deployment and our QuickStart tutorial, which also deploys a basic Next app? https://docs.railway.com/quick-start
There's a couple of requirements `npm ci` has — could you look under the npm ci section here in the top answer and see that your its not this case: "Throws an error if dependencies from these two files don't match
package.json."
https://stackoverflow.com/questions/52499617/what-is-the-difference-between-npm-install-and-npm-ciAre you able to build and run this in a docker locally on your machine? As it's failing on npm ci, you could try running that for your project and see if the error persists, in which case it is an application issue and you might be able to debug faster and then push to Railway
Status changed to Awaiting User Response Railway • about 1 year ago
6 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 6 months ago