fullstack-music icon indicating copy to clipboard operation
fullstack-music copied to clipboard

Build keeps failing when pushing to vercel

Open malikmoss opened this issue 3 years ago • 2 comments

II have recently been getting these build failures in my personal repo and it is causing my live page to 404. I've made adjustments to my yml file to make sure the job finds my package-log.json file in my subdirectory but still nothing. Any help is appreciated :) image

malikmoss avatar Sep 25 '22 22:09 malikmoss

Try deleting node_modules then run npm install again. Also check .gitignore file for package-lock.json. Maybe it was added by mistake.

Mikimann avatar Apr 07 '23 14:04 Mikimann

Also, package-lock.json should be on the root level with package.json, not in a directory. And the yml file doesn`t have any relation with the package-lock.json in your project because when you setup a yml file it runs these "jobs" you instruct it to do. It does this on a remote computer. One of these jobs is to run the script "npm install" so package-lock.json will be created when the script will ran on that remote computer.

Mikimann avatar Apr 07 '23 14:04 Mikimann