I'm trying to deploy a Firebase Cloud Function (2nd gen) but keep getting the same npm ci error about package.json and package-lock.json being out of sync, even after completely deleting and recreating the functions folder.
Build failed with status: FAILURE and message: 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 in sync. Please update your lock file with `npm install` before continuing.
npm error
npm error Missing: [email protected] from lock file
npm error Missing: @jest/[email protected] from lock file
npm error Missing: @jest/[email protected] from lock file
[100+ more Jest and testing dependencies...]
running the npm i and npm ci commands get rid of the npm errors, but deploying still gives me
Functions deploy had errors with the following functions:
testConnection(us-central1)`
Then, running the deploy function a second time results in the npm errors coming back. Really confused on this on...