-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng add @angular/fire -> Package install failed #3105
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Yep, Same issue here |
I have exactly the same problem. I have tried downgrading @angular/cli and node, and also now upgrading to the latest.. `Angular CLI: 12.2.14 Angular: 12.2.15 Package Version@angular-devkit/architect 0.1202.14 |
Hi.
|
Had the same error message. Just ran the install script with ng version output:
|
I found that if you run |
Thanks |
I think I'm having this issue. I've successfully created a new Angular project with I tried adding $ ng add @angular/fire
ℹ Using package manager: npm
✔ Found compatible package version: @angular/fire@0.0.0.
✔ Package information loaded.
The package @angular/fire@0.0.0 will be installed and executed.
Would you like to proceed? Yes
✔ Package successfully installed.
The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support. |
I believe I found a solution: It was mentioned in issue #3121 that a downgrade to |
Try the following, it did work for me npm install --save-dev @angular/cli@latest && \
sudo npm install --save-dev @angular/cli@latest -g && \
npm i -D firebase-tools && \
ng add @angular/fire@latest |
@Yafar -Thank you…it worked
|
doesnt work : ng add @angular/fire The package @angular/fire@7.3.0 will be installed and executed. npm ERR! A complete log of this run can be found in: bug-0.log |
Installing firebase-tools fixed the issue firebase login |
try
or
|
I had the same issue so, I'll share how i solved
i used sudo on login because the installation breaks otherwise, by asking a code in the middle of the process. So I just logged with sudo and voila. That happened while working with Linux Kubuntu OS |
What worked for me was: sudo npm i -D firebase-tools I recently migrated to a new computer, so I forgot to install firebase-tools in the project. |
I solved it by running: terminal > this comes from https://firebase.google.com/docs/cli#install-cli-mac-linux then running
|
It still doesn't work soo frustrating ! ng add @angular/fire@latest ℹ Using package manager: npm The package @angular/fire@latest will be installed and executed. |
it actually worked for me , thank you |
That what I did and it work :
then logged to my firebase account
|
Running
ng add @angular/fire
on a fresh install of Angular results intoPackage install failed
Version info
Angular:
13.1.2
Node:
16.13.1
npm:
8.1.2
Firebase:
10.0.1
AngularFire:
7.2.0
OS:
macOS Monterey (12.0.1)
How to reproduce these conditions
Result
The text was updated successfully, but these errors were encountered: