randomBrainstormer / MMM-GoogleCalendar

Google Calendar for MagicMirror²
MIT License
64 stars 45 forks source link

Error: Cannot find module '/home/pi/MagicMirror/modules/MMM-GoogleCalendar/authenticate.js' #4

Closed daha1989 closed 2 years ago

daha1989 commented 2 years ago

Hi :) so if I try to execute Step 5 it'll give me the following error:

pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleCalendar $ node authenticate.js node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module '/home/pi/MagicMirror/modules/MMM-GoogleCalendar/authenticate.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

any advise for that? Thank you in advance.

randomBrainstormer commented 2 years ago

Hi! according to the error the module is not found. Try and check if you're in the right directory, try using this command: ls it will list the files in the current directory, if you're in the right place you should see a file called authenticate.js, otherwise you got to navigate to the modules directory and execute node authenticate.js inside the MMM-GoogleCalendar directory.

randomBrainstormer commented 2 years ago

We seem to be facing the same issue over here

georgeismike commented 2 years ago

I am having the same issue.

randomBrainstormer commented 2 years ago

summary: there was an error in the documentation, the comamnd should be node authorize.js and not node authenticate.js. Let me know if you find any more issues.