Read the statement by Michael Teeuw here.
MM install New Pi OS error.
-
Hi im trying to do a fresh install of MM on the new pi OS but keep getting this error.
Removing libnode72:armhf (12.22.5~dfsg-2~11u1) ... (Reading database ... 164644 files and directories currently installed.) Preparing to unpack .../nodejs_14.18.1-deb-1nodesource1_armhf.deb ... Unpacking nodejs (14.18.1-deb-1nodesource1) over (12.22.5~dfsg-2~11u1) ... dpkg: error processing archive /var/cache/apt/archives/nodejs_14.18.1-deb-1nodes ource1_armhf.deb (--unpack): trying to overwrite '/usr/share/doc/nodejs/api/embedding.json.gz', which is als o in package nodejs-doc 12.22.5~dfsg-2~11u1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/nodejs_14.18.1-deb-1nodesource1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
-
Try to install node.js v16 at least. I get the same problem as the installation instructions only states v14.
Also, instead of the installation instructions, follow this link and run the script - I think that will install v16.
[https://github.com/sdetweil/MagicMirror_scripts](link url)I got mine to work this afternoon with node.js v17, but developer said no-go v17 - so I do not know what to tell you. Mine works fine with v17 - well, most of the modules if I do not get a error:
at Object. (/home/pi/MagicMirror/modules/…
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions…js
internal/modules/cjs/loader.js:1108:10) {
code: ‘MODULE_NOT_FOUND’,
requireStack: [
‘/home/pi/MagicMirror/modules/MMM-…/node_helper.js’,
‘/home/pi/MagicMirror/js/app.js’,
‘/home/pi/MagicMirror/js/electron.js’,
‘/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js’,
undefinedin some modules.
So there is obviously something going on with node.js. -
@bert269 said in MM install New Pi OS error.:
code: ‘MODULE_NOT_FOUND’,
no.
that problem is this
https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later
-
Thanks guy got it working.