Any idea why firebase is not being npm installed?


#1

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?


#2

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: https://docs.npmjs.com/common-errors

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