A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
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.
-
@alborzs said in Fresh install, Cannot find module 'depd':
Cannot find module ‘depd’
how did u install?
-
@sdetweil , I just used the install script.
bash -c "$(curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh)"
-
@alborzs I don’t see any code requiring depd…
can u tell me you node and npm versions
node -v npm -v
-
@sdetweil
Please see below:pi@raspberrypi:~ $ node -v v9.11.2 pi@raspberrypi:~ $ npm -v 5.6.0
-
-
@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.
-
-
@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
-
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.