Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"firebase" is added as a dependency in your project's package.json but it doesn't seem to be installed

"firebase" is added as a dependency in your project's package.json but it doesn't seem to be installed. Please run "yarn" or "npm install" to fix this issue.

I am getting this error while running react-native on expo-cli locally. I have firebase-7.9.0 and expo- ^40.0.0 in my dependencies still it is showing this error.

like image 227
shweta gawhad Avatar asked May 25 '21 13:05

shweta gawhad


2 Answers

If you are using expo, you are supposed to install firebase using expo.

expo install firebase

like image 132
Ayesha Khan Avatar answered Oct 25 '22 05:10

Ayesha Khan


I added @ before firebase and the build worked.

"dependencies": {
    "expo": "~41.0.1",
    "@firebase": "^9.0.0-beta.2",
    ...
  },
like image 45
akerra Avatar answered Oct 25 '22 05:10

akerra