Read the statement by Michael Teeuw here.
[MMM-GmailFeed] - Simple Gmail unread messages list/notification
-
After updating MM to the latest version, every time I have Gmailfeed in the config I get this error when I launch MM.
[22.12.2021 18:26.44.188] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js -
and …
Require stack: - /home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js:2:15) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) [22.12.2021 18:26.44.219] [ERROR] Whoops! There was an uncaught exception... [22.12.2021 18:26.44.225] [ERROR] Error: Cannot find module 'request' Require stack: - /home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:887:15) at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at Module._load (internal/modules/cjs/loader.js:732:27) at Function.f._load (electron/js2c/asar_bundle.js:5:12913) at Module.require (internal/modules/cjs/loader.js:959:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js:2:15) at Module._compile (internal/modules/cjs/loader.js:1078:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/modules/MMM-GmailFeed/node_helper.js', '/home/pi/MagicMirror/js/app.js', '/home/pi/MagicMirror/js/electron.js', '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', undefined ] }
Any ideas on how to fix this?
-
-
@aarish said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:
Cannot find module ‘request’
Ecrite noire sur blanc l’erreur : Cannot find module ‘request’
-> Faut juste installer le module demandé (request)
“npm install request” et le tour est joué -
@sdetweil said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:
@aarish see
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-laterSam,
This did not work for me I could not find anywhere it showed which dependency
my MM needed to run the GmailFeed, but A nice person pointed out to me to run
npm install request in the MagicMirror/modules directory. Reinstalled the MMM-GmailFeed and then ran the npm install request in the modules directory and it WORKS again. Thank you to Kristjan ESPERANTO! -
@plainbroke module install instructions
git clone https://github.com/shaneapowell/MMM-GmailFeed.git cd MMM-GmailFeed npm install
the GitHub page is the README.MD file
also, if the module has a package.json you need to npm install ( in the new module folder), even if they don’t say so
-
I am having an unusual problem with it. It is preventing Googleassistant from bugsounet from loading
I tested this 3 times by disabling the update and another one disabling the module and finally I reinstalled the previous version and everything worked perfectly, so I don’t understand what’s going on here -
Also just came across a clash between GmailFeed and both MMM-News and MMM-NewsAPI.
Seems my GmailFeed was a little out of date as a git pull updated stuff there and now they are playing nicely together. Must be something quite recent though as I’m sure I did a full mirror update not so long ago…?
-
@sdetweil said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:
@plainbroke module install instructions
git clone https://github.com/shaneapowell/MMM-GmailFeed.git cd MMM-GmailFeed npm install
the GitHub page is the README.MD file
also, if the module has a package.json you need to npm install ( in the new module folder), even if they don’t say so
I did all the npm install and it still did not work until I did the “npm install request” in the MagicMirror/modules folder, that alone fixed almost all my install issues… Could hardly believe something so simple fixed so much… And yes I have been running npm install in all my modules folders just to be safe. That pm2 restart mm && pm2 log lines=50 ( i think that is correct) really made life easier… Thanks to all whom helped with my issue…
-
@plainbroke said in [MMM-GmailFeed] - Simple Gmail unread messages list/notification:
that alone fixed almost all my install issues… Could hardly believe something so simple fixed so much
this is because the author didn’t record request being used in his package.json, cause it ‘worked’ without it…, because MM supplied it…
but MM removed it because the library has been discontinued) (deprecate) and is exposed the security issues.
oops… module didn’t declare, and its not there anymore… boom