0

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...

1
  • Please edit the question to show a complete minimal reproducible example of the code you have that doesn't work the way you expect. We should be able to copy that and follow your instructions to observe the same result. Commented Nov 23 at 19:37

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.