Hello @BahaniBillel ,
Welcome to Google Cloud Community!
You can do the following troubleshooting options:
- Check out the documentation on how to create and deploy an HTTP Cloud Function with Node.js
- The error usually occurs if you don’t use npm install for installing dependencies. See Specify dependencies in Node.js.
Also, take a look at these related Stackoverflow posts as you might have the same issue:
- npm ci can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1
- How do I install npm packages on Google Cloud Functions?
If the above options don’t work, you can contact Google Cloud Support to further look into your case. Hope it helps, thanks!