echang15 / MMM-Dad-Jokes

Dad Joke module for Magic Mirror
MIT License
20 stars 13 forks source link

Loading dad joke...never updates #4

Open OvernightSuccess123 opened 4 years ago

OvernightSuccess123 commented 4 years ago

Appears to have worked as far as enabling it is seeing it.

However it only show "loading dad joke..." and never updates.

Jotterloo commented 4 years ago

same problem here

Jotterloo commented 4 years ago

same problem here

hmmm restarted the npm server and now the jokes work

xKrummy commented 3 years ago

Same problem for me. Solved it with the following approach. @echang15 you maybe should make a installation manual including the follwoing (solved my issue the least):

cd ~/MagicMirror/modules
git clone https://github.com/echang15/MMM-Dad-Jokes.git
cd MMM-Dad-Jokes 
npm install

// restart of magicMirror needed afterwards. If pm2 for autostart of magic mirror is used you can do as follows

cd ~ 
pm2 restart mm //or whatever your name for your autostart script is
theishman commented 3 years ago

@xKrummy thanks for the input, I take it by the non-response from the author that people are on their own for this one.

Powers64 commented 2 years ago

I ran into another issue (guess its a new common one), need to run the following command after running what xKrummy posted.

npm install request

Found it when running: pm2 logs mm 0|mm | WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'

It now working wonderfully!

68267a commented 2 years ago

For docker users: https://gitlab.com/khassel/magicmirror/-/issues/20

docker exec -it $containerName /bin/bash
cd modules
npm install request
BrianHepler commented 1 year ago

I recently attempted to install this module and ended up with a dependency problem.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: MMM-Dad-Jokes@1.0.0
npm ERR! Found: stylelint@14.16.1
npm ERR! node_modules/stylelint
npm ERR!   peer stylelint@"14.x" from grunt-stylelint@0.18.0
npm ERR!   node_modules/grunt-stylelint
npm ERR!     dev grunt-stylelint@"latest" from the root project

and so forth. It appears that the package.json is using obsolete packages in the devDependencies section. Solution: edit the package.json file to remove them, then install request and then npm install like normal. (for some odd reason, the --omit=dev flag doesn't work)

KristjanESPERANTO commented 8 months ago

Since @echang15 doesn't respond I recommend using the fork from brucetony: https://github.com/brucetony/MMM-Dad-Jokes