• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Libraries: Could not install library

Q&A Forum › Category: ESP32 › Libraries: Could not install library
0 Vote Up Vote Down
Joe Margevicius asked 3 years ago

I went to continue the Firebase Timestamping example, with the new charting features.  I’m doing this on a different PC, after having copied the timestamping project over (I use VSCode). I confirmed that I can download the Part 1 ESP32 code and have it update the timestamps in the database, just like it did in the other PC.  So, I copied all the new Part 2 files (charting-definition.js, etc), into the existing Firebase Project, and went to do the firebase deploy, but it complained that it couldn’t locate the firebase command. 
 
So, after some failed attempts to figure out why, I went back to basics, and just created a new ESP32 project (using the default main.cpp, and the proper platformio file), and went to add the Firebase tools library (searching for ESP Client library and selecting the Arduino Client, as described in the eBook), but it comes up with an error: Libraries: Could not install library. I’ve tried different approaches (restarting VSCode, opening an existing project that works, …) and I get the same error when I try to install this Firebase library.
 
I’m assuming the lack of this Tool library is why the firebase deploy command didn’t work. Any ideas as to what’s happening?  I’m a bit lost for ideas (other than deinstalling/reinstalling VSCode, which I really don’t think will help).  Thanks. 

Question Tags: Firebase
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Deploying a firebase project is not related to the libraries you use to program your boards.
Those are two different things.
 
Did you install Firebase Tools on that new computer? Maybe you don’t have installed all the necessary tools to create a firebase app on your computer, that are:

  • Visual Studio Code
  • Node.JS LTS version
  • Install Node.js Extension Pack (VS Code)
  • Install Firebase Tools

 
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Joe Margevicius answered 3 years ago

 Thanks Sara …. so, I had started the Firebase eBook all over again on my laptop, and when I came to pg 44, Installing ESP Firebase Client Library VS Code), that is where I started getting the “Libraries, Could Not Install Libraries” error.
 
So, I did what you asked about: “Did you install Firebase Tools on that new computer” … the answer was “no”, but that is detailed in section 4.1, pg 105, and is the reason I hadn’t done it.  
 
Now that I’ve done it (i.e just the node.js for now), back on page  44,  I can now install the Firebase Library Client.  I’ll continue with the rest of the install, and see if I can do the firebase deploy for the Part II of the timestamping tutorial.  Basically, I hadn’t done the installs and copying the files from the other computer wasn’t enough.  … I’ll report back when I get through the tutorial.   – JoeM

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi again.
You need to install all the tools I mentioned previously.
Otherwise, it will not work.
Regards,
Sara

0 Vote Up Vote Down
Joe Margevicius answered 3 years ago

Hi Sara … I finally resolved my issues, and although I thought I knew enough about all the code needed from going through the Firebase eBook, I didn’t have a good understanding of all the steps needed to produce a project.  I feel pretty confident now to take on building a different project using your code as a starting point, but importantly, I feel I have a good procedure now for building a project from scratch.  I wrote a comment in the BME280 charting tutorial you wrote explaining more.  If there is interest in my 3 page procedure I wrote up, I’d like to share it (but can’t figure out how to add a pdf file to a gist … is there another way to include a pdf in this forum?).  Thanks for your help.  This question can be marked resolved.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Great! I’m glad you figured it out.
 
If you want to share a PDF, you can upload it to google drive for example, and then, share a link to the file.
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.