3 months ago
I dont know whats wrong since this is the first time i'm using railway. I made a laravel project and wanted to deploy it from my git repository. But it shows this error. Is this enough detail? and if its not enough what kind of details should i provide? I'm really stressed and i really look forward to using railway. I only add env and didnt change anything else, should i? is there a tutorial on how to deploy laravel project to railway? Please help
added 164 packages, and audited 165 packages in 3s
40 packages are looking for funding
run npm fund
for details
3 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit
for details.
npm notice
npm notice New major version of npm available! 10.7.0 -> 11.1.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.1.0
npm notice To update run: npm install -g npm@11.1.0
npm notice
[ 9/12] RUN npm ci ✔ 3s
[10/12] COPY . /app/.
[10/12] COPY . /app/. ✔ 2s
[11/12] RUN npm run build
build
vite build
sh: 1: vite: Permission denied
✕ [11/12] RUN npm run build
process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 126
Dockerfile:25
23 | # build phase
24 | COPY . /app/.
25 | >>> RUN npm run build
26 |
27 |
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 126
Error: Docker build failed
ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
3 months ago
Hello,
You are committing your node_modules
folder to GitHub, delete that folder from GitHub, and then create a .gitignore
file to ignore that folder so it doesn't make its way back into the repo.
Best,
Brody