Skip to main content
Question

Firebase Extension not installed


Forum|alt.badge.img

I’ve been trying all day to install the RevenueCat extension, but no luck. This is the error I’m getting:

; RESOURCE_ERROR at /deployments/firebase-ext-firestore-revenuecat-purchases/resources/handler: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Gen1 operation for function projects/f1-live-pulse-27147/locations/us-central1/functions/ext-firestore-revenuecat-purchases-handler failed: Build failed: npm error code EUSAGE\nnpm error\nnpm 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.\nnpm error\nnpm error Invalid: lock file's long@5.2.3 does not satisfy long@5.2.4\nnpm error Invalid: lock file's long@5.2.3 does not satisfy long@5.2.4\nnpm error Invalid: lock file's long@5.2.3 does not satisfy long@5.2.4\nnpm error\nnpm error Clean install a project\nnpm error\nnpm error Usage:\nnpm error npm ci\nnpm error\nnpm error Options:\nnpm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]\nnpm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]\nnpm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]\nnpm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]\nnpm error [--no-bin-links] [--no-fund] [--dry-run]\nnpm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]\nnpm error [-ws|--workspaces] [--include-workspace-root] [--install-links]\nnpm error\nnpm error aliases: clean-install, ic, install-clean, isntall-clean\nnpm error\nnpm error Run \"npm help ci\" for more info\nnpm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-01-10T14_45_06_171Z-debug-0.log; Error ID: 7fa33aaa."}

 

 

This post has been closed for comments

16 replies

Forum|alt.badge.img

Solved

  1. Clone the Github repo
  2. Run the following commands
    cd functions && npm install && cd ..

     

  3. Run this replacing your Firebase project-id and follow the prompts

    firebase ext:install . --project [project-id]

     

  4. Run this and accept 
    firebase deploy --only extensions

     


Worked here as well! Many thanks @simone. 


  • New Member
  • 2 replies
  • January 20, 2025

Thanks for posting this. I cannot for the life of me get this to install, I have the same error as you.

I can clone the repo and run 

cd functions && npm install && cd ..

without any issue. It does appear that its trying to create a new project though, instead of using my existing project when I run 

firebase ext:install . --project [project-id]

Which then causes firebase deploy --only extensions to produce the error:

 

Error: Request to https://cloudresourcemanager.googleapis.com/v1/projects/revenuecat-xxxx had HTTP Error: 403, The caller does not have permission

 

Any thoughts?
 


Hi! Had the same, but when I changed (renamed) the project in the file below to my project, it succeeded:

firestore-revenuecat-purchases/extensions/firestore-revenuecat-purchases.env


  • New Member
  • 2 replies
  • January 20, 2025

@mitchel-32fd79 Interesting, my env file, doesn’t have anything mentioning my project other than REVENUECAT_SHARED_SECRET. Did you have  PROJECT env var?


Hi ​@mb-3aced2 ! I went back to the project to verify, I’m sorry I shared the wrong file. It was in the ‘.firebaserc’ which is an hidden file in the main ‘firestore-revenuecat-purchases’ folder. There I changed the project and was able to deploy the extension. It is now working fine.


Forum|alt.badge.img
  • New Member
  • 3 replies
  • January 26, 2025
mb-3aced2 wrote:

Thanks for posting this. I cannot for the life of me get this to install, I have the same error as you.

I can clone the repo and run 

cd functions && npm install && cd ..

without any issue. It does appear that its trying to create a new project though, instead of using my existing project when I run 

firebase ext:install . --project [project-id]

Which then causes firebase deploy --only extensions to produce the error:

 

Error: Request to https://cloudresourcemanager.googleapis.com/v1/projects/revenuecat-xxxx had HTTP Error: 403, The caller does not have permission

 

Any thoughts?
 

Here is the source of error and solution for it: 
Default project value of downloaded extension is revenuecat-156XXXXXX. You need to change this value to your own project name.


1.Open the downloaded directory  in Vscode, Atom Text editor or any type of programming IDE.

2.Then execute ctrl+shift+F or command+shift+f for searching “revenuecat-156755”. 
It will list all files that includes this value. 

3.Change it with your project name then execute below command again, everything will be fixed; (firebase deploy --only extensions)

firebase deploy --only extensions


THEN IT WILL BE FIXED. Succesful output will look like this.
 

 

 


Forum|alt.badge.img+1
  • New Member
  • 3 replies
  • January 26, 2025

Why is this broken? Can someone at RevenueCat address?


Forum|alt.badge.img
  • New Member
  • 3 replies
  • January 26, 2025
aapps wrote:

Why is this broken? Can someone at RevenueCat address?

What is the issue for you, which error are you getting, did you tried to 2 preferred solutions?


Forum|alt.badge.img+1
  • New Member
  • 3 replies
  • January 26, 2025

Same error as OP. The preferred solution is directly installing through Firebase Extensions web interface


Forum|alt.badge.img
  • New Member
  • 3 replies
  • January 26, 2025
aapps wrote:

Same error as OP. The preferred solution is directly installing through Firebase Extensions web interface

Yes it would be good, you can fix it by manually deploying the code while waiting for bug fix. I suggest you to try the fix I posted. We are in the age of accelerationism unless you are in Europe😂 . I just wrote a custom webhook handler for all events to manage custom user/credit system.


Forum|alt.badge.img
  • New Member
  • 3 replies
  • January 29, 2025

After getting this error, I just pressed the reinstall button and the installation got though this time. However, the function is still not deployed: “Function deployment failed. Try again.”

> The preferred solution is directly installing through Firebase Extensions web interface
+1


Forum|alt.badge.img+2
  • Member
  • 8 replies
  • February 3, 2025

I’ve been trying to get this to work but to no success.
I contacted customer support and today I got this response from them, hopefully it’ll be sorted out in a few days.

“Hey there!
 
Thanks for reaching out. This is an issue we're aware of and currently working on a fix - we've published a new version that is currently under review, and this should be approved within a few days. I can keep you updated once this version is available!

Kaitlin
Developer Support Engineer
RevenueCat”


Forum|alt.badge.img+1
  • New Member
  • 3 replies
  • February 7, 2025

Do we know what version is the fixed version? I see 0.1.14 is the current version.

@Anybody that sees this thread: if you see that the Firebase-RevenueCat extension is updated/live please ping this thread. Thanks


Forum|alt.badge.img
  • New Member
  • 2 replies
  • February 9, 2025

Also running into this issue. Hoping this is fixed soon.


aapps wrote:

Do we know what version is the fixed version? I see 0.1.14 is the current version.

@Anybody that sees this thread: if you see that the Firebase-RevenueCat extension is updated/live please ping this thread. Thanks

 

@aapps ​@halima and anyone else interested. There is already a new version available. Seems like it is working I’ve just updated the broken one (had the extension installed but Cloud Function was broken) and it redeployed the Cloud Function and everything seems to be alright.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings