1|MagicMir | A JavaScript error occurred in the main process
1|MagicMir | Uncaught Exception:
1|MagicMir | Error: Cannot find module 'depd'
1|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
1|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
1|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:528:25)
1|MagicMir | at Module.require (internal/modules/cjs/loader.js:658:17)
1|MagicMir | at require (internal/modules/cjs/helpers.js:20:18)
1|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:14:17)
1|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:159:3)
1|MagicMir | at Module._compile (internal/modules/cjs/loader.js:711:30)
1|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
1|MagicMir | at Module.load (internal/modules/cjs/loader.js:620:32)
1|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information
1|MagicMir | MESA-LOADER: failed to retrieve device information
1|MagicMir | MESA-LOADER: failed to retrieve device information
1|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
Read the statement by Michael Teeuw here.
Posts
-
RE: Fresh install, Cannot find module 'depd'
-
RE: Fresh install, Cannot find module 'depd'
@sdetweil ,
I tried that, below is the result, still getting the same result.pi@raspberrypi:~/MagicMirror $ npm install > magicmirror@2.8.0 install /home/pi/MagicMirror > cd vendor && npm install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) audited 220 packages in 9.1s found 5 vulnerabilities (4 low, 1 high) run `npm audit fix` to fix them, or `npm audit` for details > magicmirror@2.8.0 postinstall /home/pi/MagicMirror > sh installers/postinstall/postinstall.sh && npm run install-fonts MagicMirror installation successful! > magicmirror@2.8.0 install-fonts /home/pi/MagicMirror > cd fonts && npm install audited 1 package in 1.117s found 0 vulnerabilities audited 3558 packages in 56.93s found 0 vulnerabilities
-
RE: Fresh install, Cannot find module 'depd'
@sdetweil,
I tried that as sudo, still getting the exact same issue:pi@raspberrypi:~ $ sudo npm i -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.10.0 added 323 packages, removed 364 packages and updated 55 packages in 275.817s pi@raspberrypi:~ $ cd MagicMirror/ pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror Use --update-env to update environment variables [PM2] Applying action restartProcessId on app [MagicMirror](ids: 1) [PM2] [MagicMirror](1) Use `pm2 show <id|name>` to get more details about an app pi@raspberrypi:~/MagicMirror $ pm2 logs MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | 1|MagicMir | 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | 1|MagicMir | 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | 1|MagicMir | 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 1|MagicMir | Error: Cannot find module 'depd' 1|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) 1|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) 1|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:528:25) 1|MagicMir | at Module.require (internal/modules/cjs/loader.js:658:17) 1|MagicMir | at require (internal/modules/cjs/helpers.js:20:18) 1|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:14:17) 1|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:159:3) 1|MagicMir | at Module._compile (internal/modules/cjs/loader.js:711:30) 1|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 1|MagicMir | at Module.load (internal/modules/cjs/loader.js:620:32) 1|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 1|MagicMir | MESA-LOADER: failed to retrieve device information 1|MagicMir | MESA-LOADER: failed to retrieve device information 1|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
-
RE: Fresh install, Cannot find module 'depd'
@sdetweil
Please see below:pi@raspberrypi:~ $ node -v v9.11.2 pi@raspberrypi:~ $ npm -v 5.6.0
-
RE: Fresh install, Cannot find module 'depd'
@sdetweil , I just used the install script.
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
-
Fresh install, Cannot find module 'depd'
Hi,
I had an old installation of mm, while pulling the latest code, I managed to mess things up so I removed everything and reinstalled mm.
Now I am getting the following error:
pi@raspberrypi:~/MagicMirror $ pm2 logs 1 [TAILING] Tailing last 15 lines for [1] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | 1|MagicMir | 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | 1|MagicMir | 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | 1|MagicMir | 1|MagicMir | > magicmirror@2.8.0 start /home/pi/MagicMirror 1|MagicMir | > sh run-start.sh 1|MagicMir | /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 1|MagicMir | Error: Cannot find module 'depd' 1|MagicMir | at Module._resolveFilename (internal/modules/cjs/loader.js:602:15) 1|MagicMir | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) 1|MagicMir | at Function.Module._load (internal/modules/cjs/loader.js:528:25) 1|MagicMir | at Module.require (internal/modules/cjs/loader.js:658:17) 1|MagicMir | at require (internal/modules/cjs/helpers.js:20:18) 1|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:14:17) 1|MagicMir | at Object.<anonymous> (/home/pi/MagicMirror/node_modules/body-parser/index.js:159:3) 1|MagicMir | at Module._compile (internal/modules/cjs/loader.js:711:30) 1|MagicMir | at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10) 1|MagicMir | at Module.load (internal/modules/cjs/loader.js:620:32) 1|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 1|MagicMir | MESA-LOADER: failed to retrieve device information 1|MagicMir | MESA-LOADER: failed to retrieve device information 1|MagicMir | ATTENTION: default value of option force_s3tc_enable overridden by environment.
Any idea what I am doing wrong, I have not even added any modules yet! It is just the fresh install.
-
RE: Tilting the display by a couple of degrees to make it straight
@broberg @evroom , thanks guys. That is exactly what I needed.
-1 degree of rotation and it is perfect now. -
RE: Tilting the display by a couple of degrees to make it straight
@bhepler :)
@evroom Thanks, I will give that a try. It is just such a beautiful installation I don’t wanna mess with it now. All the cable management, everything is perfect. I curse myself for mounting the display every time I am in front of the mirror -
Tilting the display by a couple of degrees to make it straight
Hi,
I have managed to install the display behind my mirror a bit tilted. It is off by a couple of degrees only, but it still shows.
Is there anyway to tilt the whole interface a couple of degrees?I have already searched quite a bit of the display of the raspberry pie can be tilted but it I have not found a solution, so I am really hoping that the MM interface can be tilted! The display is already glued so that is difficult to change now.
-
RE: Electron and high CPU usage on Raspberry-Pi 3
@bhepler, that did solve the problem, One module was causing the issue. Thanks.