Read the statement by Michael Teeuw here.
Cannot find module 'node-fetch' error with MMM-SoccerLiveScore
-
@karsten13 well restarting / stopping / starting is no problem. But the error just remains and doesnt go away…
-
@codac which error? the node-fetch or the lib error?
(@karsten13 we installed electron, my mistake… in docker, doah! )
-
@sdetweil the node-fetch error
-
if you are using https://github.com/0m4r/MMM-SoccerLiveScore the module contains the missing
node-fetch
so you should do agit pull
in the module folder and try again (which means restart the container) -
@karsten13 did they fix the module? I didn’t check
-
you are right, they “fixed” it in
devDependencies
instead independencies
…then
git pull
is useless, you have to install the missing library in the module folder as sam already explained above -
-
@KristjanESPERANTO well, npm install would have installed the devDependencies too…
-
@sdetweil Sure. But my PR removes node-fetch, so
npm install
is no longer necessary for this module. -
well, npm install would have installed the devDependencies too…
This sentence clicked in my brain.
I have
NODE_ENV=production
as default in my images (expect images I use for testing) and with thisnpm install
will install nothingnpm install node-fetch@2
will install nothing
so @codac please go again in the folder of the module and run
NODE_ENV=test npm install node-fetch@2
this should hopefully solve the issue