Skip to content
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

Typings install firebase - Unable to find "firebase" ("npm") in the registry #182

Closed
shershen08 opened this issue May 19, 2016 · 9 comments

Comments

@shershen08
Copy link

Same problem as in #160 but doesn't fix that way:

$ typings install --save --ambient firebase
gives:

└── (No dependencies)

and just
$ typings install firebase

gives

typings ERR! message Unable to find "firebase" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry typings ERR! caused by https://api.typings.org/entries/npm/firebase/versions/latest responded with 404, expected it to equal 200

@r-park
Copy link

r-park commented May 19, 2016

You might be running typings 1.0, which introduced some breaking changes. Try:

$ typings install dt~firebase --global --save

You may also need to update your tsconfig.json from:

"files": [
  "typings/main.d.ts"
]

to:

"files": [
  "typings/index.d.ts"
]

@shershen08
Copy link
Author

Thanks, @r-park it helped!

@semeano
Copy link

semeano commented May 29, 2016

I'm having the same issue here.

typings v1.0.4
node v6.2.0
npm v3.8.9

@michaschwab
Copy link

@r-park you're my hero.

@tobujin
Copy link

tobujin commented Jun 1, 2016

Hi,@r-park, Thanks for your help.
But i have a issue.
My project:
ionic start login --v2 --ts

npm install angularfire2
npm install firebase@2.4.2

and

typings dt~firebase --global --save

then shows blow.

firebase
(No dependencies)

Please help me.

shlomiassaf added a commit to shlomiassaf/angularfire2 that referenced this issue Jun 4, 2016
Update the docs per information from angular#182

Some people might not run to search the issues, so it should be on the docs.
@UzairNoman
Copy link

@tobujin,I am encountering the same issue.I have used angularfire push() and update() methods they still works fine, despite of the fact ionic-cli is showing bunch of errors like :
Error TS2304: Cannot find name "Firebase"
and more

@tobujin
Copy link

tobujin commented Jun 8, 2016

@UzairNouman, thank you for your response.
It's not fault.
It's normal.
My program works very well.

@blackhawk389
Copy link

Could somebody tell me why is it happens why we have to change name from main.d.ts to index.d.ts

@WhatsThatItsPat
Copy link

@blackhawk389 It just has to do with the Typings update to 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants