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 fileThings 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
0 Replies
2 months ago
Can you share your github repository?
I can't.. I think the issue might that the build is cached but I don't know how i can clear the cache
2 months ago
That is not the issue.
2 months ago
Can you share a screenshot of your root directory
2 months ago
What's in .npmrc and is it committed
2 months ago
Have you tried deleting package-lock and regenerating it completely
2 months ago
Node modules is not present on the GitHub repo, right
2 months ago
Honestly I just guessed it got broken at some point during development
2 months ago
¯_(ツ)_/¯
2 months ago
The error you got pretty much just says "Help, your file is broken"
Status changed to Solved brody • 2 months ago
2 months ago
!s

