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

More detail on Authentication Setup! #38

Open
labaland opened this issue May 4, 2023 · 1 comment
Open

More detail on Authentication Setup! #38

labaland opened this issue May 4, 2023 · 1 comment

Comments

@labaland
Copy link

labaland commented May 4, 2023

Please can u add more info step by step how to do this for us nuubz?

And how do i do step 5 in docker? (synology)
ssh and cd in to that folder and typ the command? i get this error then:

`
Error: Cannot find module '@google-cloud/local-auth'
Require stack:

  • /volume3/docker/magic_mirror/modules/MMM-GoogleCalendar/authorize.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object. (/volume3/docker/magic_mirror/modules/MMM-GoogleCalendar/authorize.js:4:24)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/volume3/docker/magic_mirror/modules/MMM-GoogleCalendar/authorize.js'
    ]
    }
    `

Node.js v18.12.0

@randomBrainstormer
Copy link
Owner

Hi! unfortunately I haven't try to run this in a docker yet, there was an issue where some people were able to make it run in docker with synology, check here if it can give you any ideas.

As of the error, it seems that @google-cloud/local-auth is not found, I'd guess that you're missing to run npm install in the module directory (note: module directory, not MagicMirror's directory), check in your docker file if you're missing an "npm install" for this package or connect directly to your container and run the command in this module. I wish I could be more helpeful but I haven't run this with docker yet. Check out this other stackoverflow question, maybe it can point you in the right direction.

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

2 participants