Skip to content
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

Provide actual setup instructions #55

Open
NathanSweet opened this issue Feb 14, 2021 · 2 comments
Open

Provide actual setup instructions #55

NathanSweet opened this issue Feb 14, 2021 · 2 comments

Comments

@NathanSweet
Copy link

This project makes too many assumptions that the user knows what they are doing. For example:

Deploy the placeholder smart home provider to Cloud Functions for Firebase using the same Project ID:

I have no idea what that means, I assume it's what the commands do. Except what folder am I supposed to run the listed commands? From the root of the project doesn't work:

npm install --prefix functions/
npm ERR! code ENOLOCAL
npm ERR! Could not install from "" as it does not contain a package.json file.

So I need to run the command where there is a package.json? The app, device, and functions folders have a package.json. Which do I use? OK the command succeeds in the app subfolder but the next command does not:

npm run firebase --prefix functions/ -- use ${PROJECT_ID}
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path [snip]\app\functions\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open '[snip]\app\functions\package.json'

I have no idea. Please provide instructions that can be followed to get the desired result.

@devedse
Copy link

devedse commented Feb 24, 2021

I also ran into this error. I fixed this by running the commands from the functions/ directory themselves.
e.g.

cd functions
npm install

@bugs181
Copy link

bugs181 commented Dec 7, 2021

Yup. Recently switched from a new iPhone 12 Pro to Google Pixel 6 Pro and migrating all of my home automation over. I am completely new to Google services and APIs. I've been trying to get this example running for over 5 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants