Need help with deployment
woutjeee
PROOP

2 months ago

Hi, I'm trying to deploy my SvelteKit app but I'm running into an npm error during the build/deploy process.

Here’s the error I’m seeing:

npm warn config production Use `--omit=dev` instead.
npm error code EUSAGE
npm error

npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are out of sync. Please update your lock file with `npm install` before continuing.
npm error

npm error Missing: picomatch@4.0.3 from lock file

Things I’ve tried so far:

  • Ran npm install locally, committed the updated package-lock.json, and pushed it — but the error still persists.

  • Yesterday I ran into a similar problem and fixed it by deleting/re-creating the service, but I’d like to know if there’s a proper way to resolve this.

Any idea how I can properly sync my lockfile and fix this deployment error?

My project-id is: bc5744b6-ac8c-49f6-828c-099f06b93c4c

Solved$10 Bounty

0 Replies

Can you share your github repository?


woutjeee
PROOP

2 months ago

I can't.. I think the issue might that the build is cached but I don't know how i can clear the cache


That is not the issue.


Can you share a screenshot of your root directory


woutjeee
PROOP

2 months ago

1423362355923779600


What's in .npmrc and is it committed


woutjeee
PROOP

2 months ago

Yea, it is commited

1423362670035341300


Have you tried deleting package-lock and regenerating it completely


woutjeee
PROOP

2 months ago

No, I'll try that.


Node modules is not present on the GitHub repo, right


woutjeee
PROOP

2 months ago

Correct


woutjeee
PROOP

2 months ago

It seems like deleting the package-lock and regenerating it fixed it.


woutjeee
PROOP

2 months ago

Thank you so much!


woutjeee
PROOP

2 months ago

Any thought why that fixed it?


Honestly I just guessed it got broken at some point during development


¯_(ツ)_/¯


The error you got pretty much just says "Help, your file is broken"


woutjeee
PROOP

2 months ago

Ohwell, its fixed now!


woutjeee
PROOP

2 months ago

Thanks alot ❤️


Status changed to Solved brody 2 months ago


noahd
EMPLOYEE

2 months ago

!s


Loading...