Read the statement by Michael Teeuw here.
After update 2.23.0 crash
-
-
@sdetweil same error
pi@raspberrypi:~/MagicMirror $ rm -rf node_modules pi@raspberrypi:~/MagicMirror $ npm install npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/pi/MagicMirror/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/MagicMirror/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2023-04-04T20_47_07_273Z-debug-0.log pi@raspberrypi:~/MagicMirror $
-
@JerryP looks like u got carried away with sudo rm /home/pi/MagicMirror/package-lock.json (notice the -lock)
and deleted the package.json
git checkout package.json
and npm install again
-
@JerryP said in After update 2.23.0 crash:
pi@raspberrypi:~/MagicMirror $ ls CHANGELOG.md Collaboration.md core 'DISPLAY=:0' index.html jest.config.js jsconfig.json magicmirror@2.23.0 module-types.ts oud run-start.sh splashscreen th.json vendor clientonly config css fonts installers js LICENSE.md modules node_modules README.md serveronly tests translations pi@raspberrypi:~/MagicMirror $ npm install npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /home/pi/MagicMirror/node_modules/acorn npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig' npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2023-04-04T20_43_20_803Z-debug-0.log
That didn’t work, no worries I will revert
-
@swvalenti what didn’t work?
u are supposed to be doing the npm install of the missing libs in the module (MMM-PGA) folder
i don’t think revert will help, the undocumented libraries were deleted by npm… not us
that .acorn file needs to be deleted
-
@swvalenti said in After update 2.23.0 crash:
@JerryP said in After update 2.23.0 crash:
pi@raspberrypi:~/MagicMirror $ ls CHANGELOG.md Collaboration.md core 'DISPLAY=:0' index.html jest.config.js jsconfig.json magicmirror@2.23.0 module-types.ts oud run-start.sh splashscreen th.json vendor clientonly config css fonts installers js LICENSE.md modules node_modules README.md serveronly tests translations pi@raspberrypi:~/MagicMirror $ npm install npm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /home/pi/MagicMirror/node_modules/acorn npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig npm ERR! errno -39 npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig' npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2023-04-04T20_43_20_803Z-debug-0.log
That didn’t work, no worries I will revert
The package.json showed no issue with that command. It worked when I reverted no issue.
-
@swvalenti how did you revert?
-
@sdetweil said in After update 2.23.0 crash:
@swvalenti how did you revert?
Copied original file and renamed before using your script.
-
@swvalenti got it…
-
@sdetweil said in After update 2.23.0 crash:
@swvalenti got it…
Thought maybe the script would catch it. Ha. Oh well thanks for all your help and work.