Sispheor / MMM-quote-of-the-day

Magic Mirror module to show a random quote from an online collection of quotations by authors, celebrities, and newsmakers.
28 stars 9 forks source link

Install fails with node v16.13.1 and npm 8.3.0 #12

Open mlewus opened 2 years ago

mlewus commented 2 years ago

npm install and/or run time (report in mm-error.log) will fail with a message saying request is missing. Sorry, I don’t remember whether it failed at install or runtime and I don’t want to reinstall it.

The problem is, ‘request’ is not being installed. I’m a noob when it comes to node so I don’t know if the developer can fix this with a change to package-lock.json or not. Request has been deprecated, see here: [https://github.com/request/request/issues/3142]

Either way, there is a workaround. First, install MMM-quote-of-the-day with: cd /MagicMirror/modules git clone https://github.com/Sispheor/MMM-quote-of-the-day.git cd MMM-quote-of-the-day npm install Then, in the same directory: npm install request

Configure config.js per instructions in README.md as usual.