Read the statement by Michael Teeuw here.
Can't find "scripts" field in /MagicMirror/modules/MMM-Todoist/package.json
-
Hi Community,
I’m having some trouble with my Todoist Module in MM since iI updated The module this week. MM and the Module itself are the latest release version and I get this message after my update:
Can’t find “scripts” field in /MagicMirror/modules/MMM-Todoist/package.json
Anyone else having problems like this?
Would be happy to get some help with this .
Thank you in advance
-
@DarthWerner can you tell us WHEN you get that message?
during npm install?If so, edit package.json
And add this before the “dependencies”: line
"scripts":{},Also can you show the output of
node -v -
Thank you Sam,
I did it like this:
“homepage”: “https://github.com/cbrooker/MMM-Todoist#readme”,
“scripts”:{},
“dependencies”: {
“axios”: “^1.6.0”,
“showdown”: “^2.0.1”and it tells me now that the install-mmm is missing.
*wb@MagicMirror:~/MagicMirror/modules/MMM-Todoist $ sudo git pull && node --run install-mm
Already up to date.
Missing script: “install-mm” for /home/wb/MagicMirror/modules/MMM-Todoist/package.jsonAvailable scripts are:
wb@MagicMirror:~/MagicMirror/modules/MMM-Todoist $ node -v
v22.14.0*All I did was a Module Update as I did many times before.
-
node --run install-mm
Is for MagicMirror itself, not a module
For a module it would be
git pull && npm install -
@sdetweil said in Can't find "scripts" field in /MagicMirror/modules/MMM-Todoist/package.json:
git pull && npm install
Thank you Sam,
I think we’re running into a version problem:
*```
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: magicmirror@2.34.0
npm error notsup Not compatible with your version of node/npm: magicmirror@2.34.0
npm error notsup Required: {“node”:“>=22.21.1 <23 || >=24”}
npm error notsup Actual: {“npm”:“11.3.0”,“node”:“v22.14.0”} -
@DarthWerner but you are supposed to be in the module folder
-
Yes, I’ve been in the modules folder when I did the git pull and npm install.
-
@DarthWerner in the MMM-Todoist folder right?
-
@DarthWerner but I think you may have messed up MagicMirror
Use my upgrade script with force instead of apply as the parm
