Open OvernightSuccess123 opened 4 years ago
same problem here
same problem here
hmmm restarted the npm server and now the jokes work
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
@xKrummy thanks for the input, I take it by the non-response from the author that people are on their own for this one.
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!
For docker users: https://gitlab.com/khassel/magicmirror/-/issues/20
docker exec -it $containerName /bin/bash
cd modules
npm install request
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)
Since @echang15 doesn't respond I recommend using the fork from brucetony: https://github.com/brucetony/MMM-Dad-Jokes
Appears to have worked as far as enabling it is seeing it.
However it only show "loading dad joke..." and never updates.