Any idea why firebase is not being npm installed?

Over the last few days, sometimes when I publish to localhost/web, the compile fails because firebase is not found.

my package config contains this

“dependencies”: {
“react”: “^16.8.6”,
“react-dom”: “^16.8.6”,
“react-localization”: “^1.0.13”,
“react-scripts”: “2.1.8”,
“muicss”: “^0.9.41”,
“react-firebaseui”: “^4.0.0”,
“firebase”: “~7.5.0”

When I delete the directory and run it again, it installs properly.

I did have an out of memory crash the other day, the project file could be corrupt.

I will work toward how to recreate this, in the meantime, any thoughts?

There could be quite many reasons why npm install fails. It could be that your npm is somehow broken or some issues with file permissions. I’d suggest to delete the npm package directory (or whole exported project directlry) and then just re-export the code in case of npm issues.

Here’s a list of common errors:

Basically Studio does not do any “magic” than triggers the “npm install” when you click Open in Browser.

1 Like

So it turns out that I am using a custom template on the website.
And the template was created before I started using firebase, so the package.json file does not reference firebase!

1 Like

That makes sense! It’s easy to forget the custom template once it’s set…