Read the statement by Michael Teeuw here.
Positions not working
-
@hango yep, sorry, missed it…
you don’t open index.html with a browser… its the shell that MM uses to place module output
-
@Joshsamuel error file not found, looks like you didn’t follow some install instructions,
there was a step
npm install
looks like something happened to the node_modules folder where the libraries are saved
-
This post is deleted! -
@sdetweil I ran npm install in the MM directory, it then said new patch version of npm available (6.14.4 > 6.14.5). I then tried to install this using
npm install -g npm
Then got the following message with some errors:
pi@raspberrypi:~/MagicMirror $ npm install -g npm npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/graceful-fs npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/mkdirp npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/nopt npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules/npm-registry-fetch npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm npm WARN checkPermissions Missing write access to /usr/lib/node_modules/npm/node_modules npm WARN checkPermissions Missing write access to /usr/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/lib/node_modules/npm/node_modules/graceful-fs npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/graceful-fs' npm ERR! { [Error: EACCES: permission denied, access '/usr/lib/node_modules/npm/node_modules/graceful-fs'] npm ERR! stack: npm ERR! 'Error: EACCES: permission denied, access \'/usr/lib/node_modules/npm/node_modules/graceful-fs\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/lib/node_modules/npm/node_modules/graceful-fs' } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-06-22T17_34_29_233Z-debug.log pi@raspberrypi:~/MagicMirror $
-
@Joshsamuel yeh, don’t do that…
to recover docd ~/MagicMirror npm install
-
@sdetweil Just did that, still haven’t got position working
-
@Joshsamuel did u examine the error in index.html as suggested>
what does the log look like, both the console log (or pm2 logs --lines=100)
and the developer window console?you have broken code, so nothing will be working right
-
npm ERR! Error: EACCES: permission denied, access ‘/usr/lib/node_modules/npm/node_modules/graceful-fs’
npm ERR! { [Error: EACCES: permission denied, access ‘/usr/lib/node_modules/npm/node_modules/graceful-fs’]npm itself is often installed with sudo priviledge (like here, hence “permission denied”).
Therefore you’d need to dosudo npm install -g npm
-
By the way, the regions are:
top_bar
bottom_bar
top_left
bottom_left
top_center
bottom_center
top_right
bottom_right
upper_third
lower_third
middle_center
fullscreen_above
fullscreen_below -
@lavolp3 I ran the npm install in the MM directory and the update, no error messages this time, but position still doesn’t work
pi@raspberrypi:~ $ cd ~/MagicMirror pi@raspberrypi:~/MagicMirror $ sudo npm install npm WARN lifecycle magicmirror@2.11.0~install: cannot run in wd magicmirror@2.11.0 echo "Installing vendor files ... npm WARN lifecycle " && cd vendor && npm install --loglevel=error (wd=/home/pi/MagicMirror) npm WARN lifecycle magicmirror@2.11.0~postinstall: cannot run in wd magicmirror@2.11.0 npm run install-fonts && echo "MagicMirror installation finished successfully! npm WARN lifecycle " (wd=/home/pi/MagicMirror) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) audited 1082 packages in 20.995s 77 packages are looking for funding run `npm fund` for details found 3 low severity vulnerabilities run `npm audit fix` to fix them, or `npm audit` for details pi@raspberrypi:~/MagicMirror $ sudo npm install -g npm /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js + npm@6.14.5 updated 5 packages in 38.973s