Skip to content

Firebase keeps getting mysteriously uninstalled in my projects #5212

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

Closed
unrealapex opened this issue Aug 15, 2021 · 7 comments
Closed

Firebase keeps getting mysteriously uninstalled in my projects #5212

unrealapex opened this issue Aug 15, 2021 · 7 comments
Labels
meta: stale This issue/PR is stale and will be closed soon type: question reporter has a general question

Comments

@unrealapex
Copy link

Bug description

I've noticed that after installing Firebase in a Gitpod workspace and returning to it after a few days, firebase is gone as if it was never installed, but files like the .firebaserc and serviceAccountKey.json are still there unmodified.

Steps to reproduce

  1. Create a new Gitpod workspace
  2. Install Firebase with npm install -g firebase-tools
  3. Wait 3 days
  4. Open the same Gitpod workspace and try typing firebase
  5. See in terminal bash: firebase: command not found

Expected behavior

Upon opening the workspace and trying to run firebase, firebase would be installed.

Example repository

No response

Anything else?

I use Gitpod on a school administered machine so it could be possible that my school IT admins have been remotely accessing my chromebook and uninstalling it for security reasons or maybe my chromebook has a virus 👀 .

@unrealapex unrealapex changed the title Firebase keeps getting uninstalled in my projects Firebase keeps getting mysteriously uninstalled in my projects Aug 15, 2021
@akosyakov
Copy link
Member

Where is it installed? Only content of /workspace folder is preserved for now. Please see #340

@unrealapex
Copy link
Author

Good question, not exactly sure. I would assume the install location is the "default" for npm. How would I be able to find the install location?

@JanKoehnlein
Copy link
Contributor

How would I be able to find the install location?

After installing, try which firebase in the terminal

@unrealapex
Copy link
Author

unrealapex commented Aug 16, 2021

Thanks, here it is:
/home/gitpod/.nvm/versions/node/v14.17.3/bin/firebase

Do you think running npm install -g --prefix ./workspace firebase-tools would do the trick?

@akosyakov akosyakov added the type: question reporter has a general question label Aug 17, 2021
@akosyakov
Copy link
Member

@unrealapex You should have a custom Dockerimage and instal firebase there: https://www.gitpod.io/docs/config-docker
It is not recommended to rely on the same workspace, but start a new workspace each time which is created from Dockerfile and your github repo: https://www.gitpod.io/docs/workspaces

@unrealapex
Copy link
Author

unrealapex commented Sep 12, 2021

While that will keep Firebase installed, won't I need to login every time?

@stale
Copy link

stale bot commented Dec 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Dec 12, 2021
@stale stale bot closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon type: question reporter has a general question
Projects
None yet
Development

No branches or pull requests

3 participants